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:
@@ -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!" */
|
||||
|
||||
Reference in New Issue
Block a user