From b4136dd3d4779d80df18f84929c576c8080cd7b8 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 9 Dec 2013 20:28:19 -0200 Subject: Fixed some logic errors Special Thanks to Haru Signed-off-by: shennetsind --- src/map/irc-bot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/irc-bot.c') diff --git a/src/map/irc-bot.c b/src/map/irc-bot.c index 0f487d8f7..2b6dcfccd 100644 --- a/src/map/irc-bot.c +++ b/src/map/irc-bot.c @@ -289,7 +289,7 @@ void irc_privmsg(int fd, char *cmd, char *source, char *target, char *msg) { } else if( strcmpi(target,hChSys.irc_nick) == 0 ) { ShowDebug("irc_privmsg: Received message from %s: '%s'\n", source ? source : "(null)", msg); #endif // IRCBOT_DEBUG - } else if( strcmpi(target,hChSys.irc_channel) == 0 ) { + } else if( msg && strcmpi(target,hChSys.irc_channel) == 0 ) { char source_nick[IRC_NICK_LENGTH], source_ident[IRC_IDENT_LENGTH], source_host[IRC_HOST_LENGTH]; source_nick[0] = source_ident[0] = source_host[0] = '\0'; -- cgit v1.2.3-60-g2f50