mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue