From: <cf...@us...> - 2010-10-23 11:51:04
|
Revision: 2164 http://znc.svn.sourceforge.net/znc/?rev=2164&view=rev Author: cflakes Date: 2010-10-23 11:50:57 +0000 (Sat, 23 Oct 2010) Log Message: ----------- lastseen module: replaced some obnoxious code :P Modified Paths: -------------- trunk/modules/lastseen.cpp Modified: trunk/modules/lastseen.cpp =================================================================== --- trunk/modules/lastseen.cpp 2010-10-23 11:46:15 UTC (rev 2163) +++ trunk/modules/lastseen.cpp 2010-10-23 11:50:57 UTC (rev 2164) @@ -96,14 +96,7 @@ virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { if (sPageName.empty() || sPageName == "index") { CModules& GModules = CZNC::Get().GetModules(); - if (GModules.size()) { - for (unsigned int b = 0; b < GModules.size(); b++) { - if(GModules[b]->GetModName().Equals("WEBADMIN")) { - Tmpl["WebAdminLoaded"] = "true"; - break; - } - } - } + Tmpl["WebAdminLoaded"] = CString(GModules.FindModule("webadmin") != NULL); MTimeMulti mmSorted; const MUsers& mUsers = CZNC::Get().GetUserMap(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |