commit fbc165b58ba731475893db08900d60b1f4573cef
parent c851e4127640a7353ad245f6b24e4e56a9e6facb
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sat, 21 Jul 2012 02:10:20 +0200
cleaner handling of /say
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/irctk.c b/irctk.c
@@ -1117,7 +1117,7 @@ int do_cmd_msg(irc_session_t *s, char *chan, char* line)
free(knick);
} else if ((arg = MATCH_CMD0(line, "say"))) {
// just a way to escape messages starting by '/'
- rsl = do_say(s, chan, arg);
+ rsl = do_say(s, chan, arg + (*arg?1:0));
} else if (line[1] == ' ') {
// another way, compatible with irssi: "/ /message"
rsl = do_say(s, chan, line + 2);