From d29b04567a6083497ba827e8496210bbe3716dfa Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 21 Mar 2026 18:36:28 -0400 Subject: Fix wrong command in "missing argument" err msg, when someone types e.g. space, enter in screens 1 & 2. --- src/cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmd.c b/src/cmd.c index 106eda8..e0481c5 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -46,6 +46,7 @@ typedef struct { OP DEOP VOICE DEVOICE KICK BAN KB IGNORE UNIGNORE MODE INVITE */ cmd_t command_defs[] = { + { "MSG", do_msg, 1 }, /* this must come first, do not move! */ { "AWAY", do_away, 1 }, { "ALERT", do_bell, 1 }, { "CLICK", do_click, 0 }, @@ -59,7 +60,6 @@ cmd_t command_defs[] = { { "LIST", do_list, 1 }, { "M", do_msg, 1 }, { "ME", do_me, 1 }, - { "MSG", do_msg, 1 }, { "NAMES", do_names, 0 }, { "PART", do_part, 0 }, { "PING", do_ping, 0 }, @@ -530,6 +530,7 @@ void cmd_rejoin_chans(void) { /* args contains the destination, space, the msg */ void cmd_send_pm(char *args) { + cmd_def = command_defs; /* element 0 of command_defs must be MSG! */ arg1 = args; do_msg(); } -- cgit v1.2.3