mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
don't crash if server sends weird NICK line, patch by Jarno Honkanen (Bug 216)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3992 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d5c5883867
commit
fd6c2df7f4
@ -380,6 +380,7 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
|
||||
char *params, *nick;
|
||||
|
||||
g_return_if_fail(data != NULL);
|
||||
g_return_if_fail(orignick != NULL);
|
||||
|
||||
params = event_get_params(data, 1, &nick);
|
||||
|
||||
|
@ -780,6 +780,7 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
|
||||
char *params, *nick, *tag;
|
||||
|
||||
g_return_if_fail(data != NULL);
|
||||
g_return_if_fail(orignick != NULL);
|
||||
|
||||
params = event_get_params(data, 1, &nick);
|
||||
if (g_strcasecmp(nick, orignick) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user