X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fmodules%2Fstats.mod%2Fmodule.c;h=190972cf2a0c53f13b447345c36adaa56372d9ed;hp=ee8a20d98b2436156e845b4d196eb277262e8ff1;hb=573b535067e4797c9481b0c4bd2c26d8d2ff68a5;hpb=f079e885c28482c8b0160a797442f2adbed940ea 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"); }