Remove some more pointless checks for sPageName.empty()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2241 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2011-01-02 16:33:42 +00:00
parent eb730d72d7
commit 44d2816379
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ public:
virtual CString GetWebMenuTitle() { return "Last Seen"; }
virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) {
if (sPageName.empty() || sPageName == "index") {
if (sPageName == "index") {
CModules& GModules = CZNC::Get().GetModules();
Tmpl["WebAdminLoaded"] = CString(GModules.FindModule("webadmin") != NULL);