X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_whowas.cpp;h=2d504c47c8f80af9a2fb67122d75ca9c419f14f1;hb=a2b40829c116cd67d5f293404371eb132dcaa8e3;hp=7f78a22ac1a0c453ca2d5de01a5354fdb7d2eb5b;hpb=11554b8626d8b421cc9cf2c6f6cc3fe2467e0441;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_whowas.cpp b/src/cmd_whowas.cpp index 7f78a22ac..2d504c47c 100644 --- a/src/cmd_whowas.cpp +++ b/src/cmd_whowas.cpp @@ -129,7 +129,8 @@ void cmd_whowas::GetStats(Extensible* ext) whowas_bytes += (sizeof(whowas_set) + ( sizeof(WhoWasGroup) * n->size() ) ); } } - ext->Extend("stats", std::string("Whowas(MAPSETS) " +ConvToStr(whowas_size)+" ("+ConvToStr(whowas_bytes)+" bytes)").c_str()); + stats.assign("Whowas(MAPSETS) " +ConvToStr(whowas_size)+" ("+ConvToStr(whowas_bytes)+" bytes)"); + ext->Extend("stats", stats.c_str()); } void cmd_whowas::AddToWhoWas(userrec* user) @@ -206,7 +207,7 @@ void cmd_whowas::PruneWhoWas(time_t t) if (iter == whowas.end()) { /* this should never happen, if it does maps are corrupt */ - ServerInstance->Log(DEBUG, "BUG: Whowas maps got corrupted! (1)"); + ServerInstance->Log(DEFAULT, "BUG: Whowas maps got corrupted! (1)"); return; } whowas_set* n = (whowas_set*)iter->second; @@ -236,7 +237,7 @@ void cmd_whowas::PruneWhoWas(time_t t) if (iter == whowas.end()) { /* this should never happen, if it does maps are corrupt */ - ServerInstance->Log(DEBUG, "BUG: Whowas maps got corrupted! (2)"); + ServerInstance->Log(DEFAULT, "BUG: Whowas maps got corrupted! (2)"); return; } whowas_set* n = (whowas_set*)iter->second; @@ -288,7 +289,7 @@ cmd_whowas::~cmd_whowas() if (iter == whowas.end()) { /* this should never happen, if it does maps are corrupt */ - ServerInstance->Log(DEBUG, "BUG: Whowas maps got corrupted! (3)"); + ServerInstance->Log(DEFAULT, "BUG: Whowas maps got corrupted! (3)"); return; } whowas_set* n = (whowas_set*)iter->second;