From fa5b3acc8f45cad4f97c3d60d8370b25dad340e9 Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 1 Jan 2011 22:59:41 +0000 Subject: [PATCH] webmods: Remove some more useless code We don't actually have a "modlist" template, so this code would cause a 404. Going through the "find module with empty name" codepath here has the same result, so this can be safely removed. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2239 726aef4b-f618-498e-8847-2d620e286838 --- WebModules.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/WebModules.cpp b/WebModules.cpp index db95646d..06896662 100644 --- a/WebModules.cpp +++ b/WebModules.cpp @@ -554,10 +554,6 @@ CWebSock::EPageReqResult CWebSock::OnPageRequestInternal(const CString& sURI, CS return PAGE_DONE; } - if (m_sModName.empty()) { - return PrintTemplate("modlist", sPageRet); - } - CModule *pModule = CZNC::Get().GetModules().FindModule(m_sModName); if (!pModule) { // Check if GetSession()->GetUser() is NULL and display