mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Reloadmod command: Moved check for empty module name argument to a place where it actually works.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1749 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -716,9 +716,15 @@ void CClient::UserCommand(CString& sLine) {
|
||||
sArgs = sLine.Token(2, true);
|
||||
|
||||
if (m_pUser->DenyLoadMod()) {
|
||||
PutStatus("Unable to reload [" + sMod + "] Access Denied.");
|
||||
PutStatus("Unable to reload modules. Access Denied.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (sMod.empty()) {
|
||||
PutStatus("Usage: ReloadMod <module> [args]");
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef _MODULES
|
||||
CModInfo ModInfo;
|
||||
CString sRetMsg;
|
||||
@@ -734,11 +740,6 @@ void CClient::UserCommand(CString& sLine) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (sMod.empty()) {
|
||||
PutStatus("Usage: ReloadMod <module> [args]");
|
||||
return;
|
||||
}
|
||||
|
||||
CString sModRet;
|
||||
|
||||
if (bGlobal) {
|
||||
|
||||
Reference in New Issue
Block a user