aboutsummaryrefslogtreecommitdiff
path: root/src/game/Chat.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-27 16:10:15 +0100
committern0n4m3 <none@none>2009-12-27 16:10:15 +0100
commitd82d10ff3664edbe4cf534563865b6c9b14f40da (patch)
treecd18b75c7c077e82603d3da0d59be8f43cb834bf /src/game/Chat.cpp
parent7e2855f53b7b0aaddc9739c95d12d01c5a103fda (diff)
Added new config options chat channel level limit, option to disable player commands of any kind
--HG-- branch : trunk
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;