aboutsummaryrefslogtreecommitdiff
path: root/src/game/Chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r--src/game/Chat.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp
index b93462802b8..3c526eccb76 100644
--- a/src/game/Chat.cpp
+++ b/src/game/Chat.cpp
@@ -1066,6 +1066,9 @@ int ChatHandler::ParseCommands(const char* text)
std::string fullcmd = text;
+ if (this->getSession()->GetSecurity() <= SEC_PLAYER && sWorld.getConfig(CONFIG_ALLOW_PLAYER_COMMANDS) == 0)
+ return 0;
+
if (m_session && !m_session->HandleOnPlayerChat(text))
return 0;