diff --git a/modules/lastseen.cpp b/modules/lastseen.cpp index 4307aa40..15182457 100644 --- a/modules/lastseen.cpp +++ b/modules/lastseen.cpp @@ -94,6 +94,16 @@ public: 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; + } + } + } + MTimeMulti mmSorted; const MUsers& mUsers = CZNC::Get().GetUserMap(); @@ -134,7 +144,7 @@ public: Row["Info"] += " channel" + CString(n == 1 ? "" : "s"); } } - + return true; } diff --git a/modules/lastseen/tmpl/index.tmpl b/modules/lastseen/tmpl/index.tmpl index a4695f6e..ff24254d 100644 --- a/modules/lastseen/tmpl/index.tmpl +++ b/modules/lastseen/tmpl/index.tmpl @@ -7,7 +7,7 @@ User Last Seen Info - Action + Action @@ -16,10 +16,10 @@ - + [Edit] [Delete] - +