849d511abc
ok simon@
13 lines
558 B
Plaintext
13 lines
558 B
Plaintext
$OpenBSD: patch-src_fe-common_irc_fe-irc-messages_c,v 1.1 2007/10/20 14:12:26 sthen Exp $
|
|
--- src/fe-common/irc/fe-irc-messages.c.orig Sat Oct 20 14:45:59 2007
|
|
+++ src/fe-common/irc/fe-irc-messages.c Sat Oct 20 14:46:21 2007
|
|
@@ -44,7 +44,7 @@ static const char *skip_target(IRC_SERVER_REC *server,
|
|
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
|