diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-10-22 13:27:56 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-10-22 13:27:56 +0000 |
commit | 9fd8510d873ed17b6416a5e5bb28ae5da7aa7ac0 (patch) | |
tree | b9af957257ef45f4a37530c3dcf93911c110b53a /src/fe-common/irc | |
parent | 5f6a7547eea8637c3e791ff6bb84844dfb1ac14a (diff) | |
download | irssi-9fd8510d873ed17b6416a5e5bb28ae5da7aa7ac0.zip |
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
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r-- | src/fe-common/irc/fe-irc-messages.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-irc-messages.c b/src/fe-common/irc/fe-irc-messages.c index 316cb793..4b2301c3 100644 --- a/src/fe-common/irc/fe-irc-messages.c +++ b/src/fe-common/irc/fe-irc-messages.c @@ -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 |