aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraczman <none@none>2009-04-04 23:02:24 +0200
committerraczman <none@none>2009-04-04 23:02:24 +0200
commiteede65e115ebbbcf322054e5e11e2675a188dcfd (patch)
tree7a3867947844740d987996095f0a8a3ba9905357 /src
parentf599b603f3b33905ed9bdcc9f228d5e98cd2ef27 (diff)
Not displaying "Command not found" error for player security level. Thx Machiavelli <3
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Chat.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp
index ee8d78383aa..edaa568ae8e 100644
--- a/src/game/Chat.cpp
+++ b/src/game/Chat.cpp
@@ -891,8 +891,11 @@ int ChatHandler::ParseCommands(const char* text)
++text;
if(!ExecuteCommandInTable(getCommandTable(), text, fullcmd))
- SendSysMessage(LANG_NO_CMD);
-
+ {
+ if(m_session && m_session->GetSecurity() == SEC_PLAYER)
+ return 0;
+ SendSysMessage(LANG_NO_CMD);
+ }
return 1;
}