diff --git a/ClientCommand.cpp b/ClientCommand.cpp index e2b04d98..980174a9 100644 --- a/ClientCommand.cpp +++ b/ClientCommand.cpp @@ -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 [args]"); + return; + } + #ifdef _MODULES CModInfo ModInfo; CString sRetMsg; @@ -734,11 +740,6 @@ void CClient::UserCommand(CString& sLine) { return; } - if (sMod.empty()) { - PutStatus("Usage: ReloadMod [args]"); - return; - } - CString sModRet; if (bGlobal) {