1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -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:
Wouter Coekaerts 2005-09-10 13:30:23 +00:00 committed by coekie
parent d5c5883867
commit fd6c2df7f4
2 changed files with 2 additions and 0 deletions

View File

@ -380,6 +380,7 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
char *params, *nick; char *params, *nick;
g_return_if_fail(data != NULL); g_return_if_fail(data != NULL);
g_return_if_fail(orignick != NULL);
params = event_get_params(data, 1, &nick); params = event_get_params(data, 1, &nick);

View File

@ -780,6 +780,7 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
char *params, *nick, *tag; char *params, *nick, *tag;
g_return_if_fail(data != NULL); g_return_if_fail(data != NULL);
g_return_if_fail(orignick != NULL);
params = event_get_params(data, 1, &nick); params = event_get_params(data, 1, &nick);
if (g_strcasecmp(nick, orignick) == 0) { if (g_strcasecmp(nick, orignick) == 0) {