summaryrefslogtreecommitdiff
path: root/chat/irssi/patches/patch-ac
blob: 3ed8059cc7d0a0fbf5d14e9e0cfbe86df787cef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ac,v 1.8 2007/10/28 13:06:30 adrianp Exp $

--- src/fe-common/irc/fe-irc-messages.c.orig	2007-10-06 10:40:39.000000000 +0100
+++ src/fe-common/irc/fe-irc-messages.c
@@ -44,7 +44,7 @@ static const char *skip_target(IRC_SERVE
 	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