irc: fix parsing of nick/host when there is nothing after in message (malformed message)
This commit is contained in:
parent
7fb84bdb03
commit
a15184a9bd
@ -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!" */
|
||||
|
Loading…
x
Reference in New Issue
Block a user