1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 09:43:13 +02:00

irc: decode/encode only text in IRC messages and not the headers (bug #29886, closes #218, closes #451)

This commit is contained in:
Sébastien Helleu
2015-06-27 17:00:53 +02:00
parent fdd9c03e5a
commit 0ff8d7b543
40 changed files with 702 additions and 157 deletions
+3 -2
View File
@@ -835,7 +835,7 @@ irc_notify_hsignal_cb (void *data, const char *signal,
for (i = 0; i < num_messages; i++)
{
irc_message_parse (ptr_server, messages[i], NULL, NULL, NULL,
NULL, NULL, NULL, &arguments);
NULL, NULL, NULL, &arguments, NULL, NULL);
if (arguments)
{
pos = strchr (arguments, ' ');
@@ -917,7 +917,8 @@ irc_notify_hsignal_cb (void *data, const char *signal,
for (i = 0; i < num_messages; i++)
{
irc_message_parse (ptr_server, messages[0], NULL, NULL,
NULL, NULL, &irc_cmd, NULL, &arguments);
NULL, NULL, &irc_cmd, NULL, &arguments,
NULL, NULL);
if (irc_cmd && arguments)
{
if (strcmp (irc_cmd, "401") == 0)