From 9fd8510d873ed17b6416a5e5bb28ae5da7aa7ac0 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Mon, 22 Oct 2007 13:27:56 +0000 Subject: 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 --- src/fe-common/irc/fe-irc-messages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fe-common/irc') 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 -- cgit v1.2.3