From 476e879097234ded77788a262eb1ef5fd981e6bb Mon Sep 17 00:00:00 2001 From: peavey Date: Tue, 22 May 2007 21:04:47 +0000 Subject: take out whowas stats from stats z until I figure out how to fix it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7122 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_stats.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cmd_stats.cpp b/src/cmd_stats.cpp index 1059745c6..9f90f06c4 100644 --- a/src/cmd_stats.cpp +++ b/src/cmd_stats.cpp @@ -185,6 +185,8 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, userrec* user, results.push_back(sn+" 249 "+user->nick+" :Channels(HASH_MAP) "+ConvToStr(ServerInstance->chanlist->size())+" ("+ConvToStr(ServerInstance->chanlist->size()*sizeof(chanrec))+" bytes)"); results.push_back(sn+" 249 "+user->nick+" :Commands(VECTOR) "+ConvToStr(ServerInstance->Parser->cmdlist.size())+" ("+ConvToStr(ServerInstance->Parser->cmdlist.size()*sizeof(command_t))+" bytes)"); #endif + +#ifndef WIN32 if (!ServerInstance->Config->WhoWasGroupSize == 0 && !ServerInstance->Config->WhoWasMaxGroups == 0) { command_t* whowas_command = ServerInstance->Parser->GetHandler("WHOWAS"); @@ -196,12 +198,13 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, userrec* user, whowas_command->HandleInternal(WHOWAS_STATS, params); if (whowas_stats.GetExt("stats")) { - char* stats; + char* stats = NULL; whowas_stats.GetExt("stats", stats); results.push_back(sn+" 249 "+user->nick+" :"+ConvToStr(stats)); } } } +#endif results.push_back(sn+" 249 "+user->nick+" :MOTD(VECTOR) "+ConvToStr(ServerInstance->Config->MOTD.size())+", RULES(VECTOR) "+ConvToStr(ServerInstance->Config->RULES.size())); results.push_back(sn+" 249 "+user->nick+" :Modules(VECTOR) "+ConvToStr(ServerInstance->modules.size())+" ("+ConvToStr(ServerInstance->modules.size()*sizeof(Module))+" bytes)"); -- cgit v1.2.3