1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-07 02:54:19 -04:00

ignore_check(): don't crash if nick is NULL - shouldn't really ever happen?

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1419 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-03-24 12:41:43 +00:00 committed by cras
parent 94fcb5d51a
commit 62dae68191

View File

@ -159,6 +159,7 @@ int ignore_check(SERVER_REC *server, const char *nick, const char *host,
int len, best_mask, best_match, best_patt;
g_return_val_if_fail(server != NULL, 0);
if (nick == NULL) nick = "";
chanrec = (channel != NULL && server != NULL &&
server->ischannel(channel)) ?