mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user