diff options
author | megamage <none@none> | 2009-04-04 15:12:36 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-04-04 15:12:36 -0600 |
commit | f744c0907514a48425df8c96bffaadbe54ac3e79 (patch) | |
tree | c5b3e53bd84f86d4b2e91170c7697b91ed50d35f /src/game/Chat.cpp | |
parent | 6e00dd978970bbad082102fef34fe71f02a63a52 (diff) | |
parent | 86bd3bfb422a299d6e0aac0f196ba4fea9affbc4 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r-- | src/game/Chat.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index 3a9317e6cef..e28da9d0063 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -1013,8 +1013,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; } |