1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

irc: fix parsing of nick/host when there is nothing after in message (malformed message)

This commit is contained in:
Sebastien Helleu
2014-02-20 08:39:18 +01:00
parent 7fb84bdb03
commit a15184a9bd
+6
View File
@@ -127,6 +127,12 @@ irc_message_parse (struct t_irc_server *server, const char *message,
ptr_message++;
}
}
else
{
if (host)
*host = strdup (ptr_message + 1);
ptr_message += strlen (ptr_message);
}
}
/* now we have: ptr_message --> "PRIVMSG #channel :hello!" */