mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -04:00
Handle server == NULL case in skip_target, fix regression with irssi-icb.
Patch by Stuart Henderson, bug #539. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4627 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
5f6a7547ee
commit
9fd8510d87
@ -44,7 +44,7 @@ static const char *skip_target(IRC_SERVER_REC *server, const char *target)
|
||||
const char *val, *chars;
|
||||
|
||||
/* Quick check */
|
||||
if (server->prefix[(int)(unsigned char)*target] == 0)
|
||||
if (server == NULL || server->prefix[(int)(unsigned char)*target] == 0)
|
||||
return target;
|
||||
|
||||
/* Hack: for bahamut 1.4 which sends neither STATUSMSG nor
|
||||
|
Loading…
Reference in New Issue
Block a user