mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05: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:
parent
94fcb5d51a
commit
62dae68191
@ -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)) ?
|
||||
|
Loading…
Reference in New Issue
Block a user