commit cc92798b2886d12ad006ecfe65b9e30612f41fd5
parent 9b21dcac56f09abc8df88b2c4fba8b72d717346b
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sun, 5 Jan 2014 19:42:11 +0100
fix problem when joining
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/irctk.c b/irctk.c
@@ -1124,7 +1124,7 @@ int do_cmd_msg(irc_session_t *s, char *chan, char* line)
if (!*arg || *arg == '\n') {
to_join = chan;
} else if (*arg == ' ') {
- to_join = arg;
+ to_join = arg + 1;
}
if (to_join && to_join[0] == '#') {
if (args.join) {