diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-08-03 17:59:12 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-08-03 17:59:12 +0200 |
commit | b7dfda9d4de99ffef3370426bb54dfd98257f3e5 (patch) | |
tree | 2f9fdf4d95eb038ad6d68e7019ea00ba4be75190 /src/plugins/irc | |
parent | 36d1aac9bd12392c224a704745d8fc898fa8cb45 (diff) | |
download | weechat-b7dfda9d4de99ffef3370426bb54dfd98257f3e5.zip |
Fix bug in IRC parser when no argument is received after command, no callback was called, and message was silently ignored (bug #30640)
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-server.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index 818891f72..75b117902 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -1315,6 +1315,11 @@ irc_server_parse_message (const char *message, char **nick, char **host, } } } + else + { + if (command) + *command = strdup (pos); + } } } |