$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