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
This commit is contained in:
psychon
2011-01-01 22:59:41 +00:00
parent 0ca689f2eb
commit fa5b3acc8f

View File

@@ -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