diff options
author | iwalkalone <iwalkalone69@gmail.com> | 2019-08-21 08:21:07 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-08-21 08:21:07 +0200 |
commit | 1e7232b8c20a720b2b668ff8a1d2a8ec12b9467d (patch) | |
tree | 466fbae98b0d961d75418761867b68b230dad107 /src/plugins | |
parent | 608ec9f4834630a2a73a8d0292883cf6dd837622 (diff) | |
download | weechat-1e7232b8c20a720b2b668ff8a1d2a8ec12b9467d.zip |
irc: fix parsing of message 367 (banlist) when there is a colon before the timestamp (closes #1396)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index aaef6877a..30b57f781 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -5332,7 +5332,7 @@ IRC_PROTOCOL_CALLBACK(367) irc_message_get_address_from_host (argv[5])); if (argc >= 7) { - datetime = (time_t)(atol (argv[6])); + datetime = (time_t)(atol ((argv[6][0] == ':') ? argv[6] + 1 : argv[6])); if (ptr_modelist) irc_modelist_item_new (ptr_modelist, argv[4], argv[5], datetime); weechat_printf_date_tags ( |