mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ static const char *skip_target(IRC_SERVER_REC *server, const char *target)
|
||||||
const char *val, *chars;
|
const char *val, *chars;
|
||||||
|
|
||||||
/* Quick check */
|
/* Quick check */
|
||||||
if (server->prefix[(int)(unsigned char)*target] == 0)
|
if (server == NULL || server->prefix[(int)(unsigned char)*target] == 0)
|
||||||
return target;
|
return target;
|
||||||
|
|
||||||
/* Hack: for bahamut 1.4 which sends neither STATUSMSG nor
|
/* Hack: for bahamut 1.4 which sends neither STATUSMSG nor
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue