aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-02 22:03:10 -0500
committerB. Watson <urchlay@slackware.uk>2026-03-02 22:03:10 -0500
commitdc6297d5df43f87d1ed2ea1b5c1f5a5193ec235a (patch)
tree74d28b3aa042a2fb0e5ed5b774db869325da7bda /src/cmd.c
parentba295fcffbd353e45297bbeec96f681bb4f2e00e (diff)
downloadfujinet-chat-dc6297d5df43f87d1ed2ea1b5c1f5a5193ec235a.tar.gz
Fix "nick already in use" and permutation.
Diffstat (limited to 'src/cmd.c')
-rw-r--r--src/cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd.c b/src/cmd.c
index d9abc87..7c757b7 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -25,9 +25,8 @@ static void cmd_chan_text(void) {
scr_print_active("/");
scr_print_active(target);
}
- scr_print_active(" ");
+ scr_print_active("> ");
scr_print_active(command);
- scr_print_active(">");
scr_eol_active();
txbuf_set_str("PRIVMSG ");
@@ -54,5 +53,6 @@ void cmd_command(const char *cmd) {
}
void cmd_execute(void) {
+ if(!*edit_box) return;
cmd_command(edit_box);
}