aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
}