From: pk910 Date: Sat, 25 Feb 2012 16:39:48 +0000 (+0100) Subject: fixed crash in stats.mod/module.c X-Git-Tag: v5.4~34 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=573b535067e4797c9481b0c4bd2c26d8d2ff68a5 fixed crash in stats.mod/module.c --- diff --git a/src/modules/stats.mod/module.c b/src/modules/stats.mod/module.c index ee8a20d..190972c 100644 --- a/src/modules/stats.mod/module.c +++ b/src/modules/stats.mod/module.c @@ -114,7 +114,7 @@ static TIMEQ_CALLBACK(stats_timer_callback) { else bot = bot3; if(bot) { - pkgpos += sprintf(pkgbuf + pkgpos, "%s!%s@%s %d\n", bot->user->nick, bot->user->ident, bot->host, bot->port); + pkgpos += sprintf(pkgbuf + pkgpos, "%s!%s@%s %d\n", (bot->user ? bot->user->nick : "*"), (bot->user ? bot->user->ident : "*"), (bot->host ? bot->host : "*"), bot->port); } else pkgpos += sprintf(pkgbuf + pkgpos, "?\n"); }