aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-06 23:25:10 -0500
committerB. Watson <urchlay@slackware.uk>2026-03-06 23:25:10 -0500
commit396e9e6ca3732ec94e6aaa50804d250c795da264 (patch)
tree4d26b4237f8cec579215077b041450e33598d41e /src/cmd.c
parent0310ed5a4662596251c5e3c641d409c6eda8ba01 (diff)
downloadfujinet-chat-396e9e6ca3732ec94e6aaa50804d250c795da264.tar.gz
Fix /me and /nick
Diffstat (limited to 'src/cmd.c')
-rw-r--r--src/cmd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cmd.c b/src/cmd.c
index 9d38c31..cdd7dd7 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -194,7 +194,7 @@ static void do_me(void) {
return;
}
- txbuf_set_str3("PRIVMSG ", target, " :" " \x01" "ACTION ");
+ txbuf_set_str3("PRIVMSG ", target, " :" "\x01" "ACTION ");
txbuf_append_str2(arg1, "\x01");
txbuf_send();
}
@@ -265,9 +265,11 @@ static void do_msg(void) {
static int cmd_local(void) {
arg1 = nextarg(command);
+ /*
scr_print_current("command: ");
scr_print_current(command);
scr_print_current("\n");
+ */
for(cmd_def = &command_defs[0]; cmd_def->cmd; cmd_def++) {
if(streq_i(command, cmd_def->cmd)) {
@@ -276,12 +278,12 @@ static int cmd_local(void) {
} else {
(*(cmd_def->func))();
}
- scr_print_current("(did local command)\n");
+ // scr_print_current("(did local command)\n");
return 1;
}
}
- scr_print_current("(not a local command)\n");
+ // scr_print_current("(not a local command)\n");
return 0;
}