]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
Better handle mode numerics starting with :
authorPatrick Griffis <redacted>
Sun, 19 Feb 2017 02:42:48 +0000 (21:42 -0500)
committerPatrick Griffis <redacted>
Sun, 19 Feb 2017 02:45:38 +0000 (21:45 -0500)
These are still awful but until we have a real parser..

Fixes inspircd/inspircd#1295

src/common/proto-irc.c

index 8e0d0ec14c8c5477e2c774362d9504206a98055c..969ac2e4d443b94fba9053ce58f1e193bcd68342 100644 (file)
@@ -664,7 +664,7 @@ process_numeric (session * sess, int n,
                if (sess->ignore_mode)
                        sess->ignore_mode = FALSE;
                else
-                       EMIT_SIGNAL_TIMESTAMP (XP_TE_CHANMODES, sess, word[4], word_eol[5],
+                       EMIT_SIGNAL_TIMESTAMP (XP_TE_CHANMODES, sess, word[4], (word_eol[5][0] == ':') ? word_eol[5] + 1 : word_eol[5],
                                                                                  NULL, NULL, 0, tags_data->timestamp);
                fe_update_mode_buttons (sess, 'c', '-');
                fe_update_mode_buttons (sess, 't', '-');
@@ -692,7 +692,7 @@ process_numeric (session * sess, int n,
                        if (sess->ignore_date)
                                sess->ignore_date = FALSE;
                        else
-                               channel_date (sess, word[4], word[5], tags_data);
+                               channel_date (sess, word[4], (word[5][0] == ':') ? word[5] + 1 : word[5], tags_data);
                }
                break;