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:
cflakes
2010-02-08 22:55:26 +00:00
parent 702faeeed5
commit 0ff25fc532

View File

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