aboutsummaryrefslogtreecommitdiff
path: root/src/game/Chat.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-28 16:27:45 -0600
committermegamage <none@none>2008-12-28 16:27:45 -0600
commit2d25493b8b847745c9bb5179c9a301e49effff65 (patch)
treec28a893338fecd94aa2cd3013508f0305b41738f /src/game/Chat.cpp
parente2ee47fb355c3ff59c54cd1bd3f2c8b329c8a108 (diff)
parent7e85d91f696e6c73fb4d94f24330fb380e725a77 (diff)
*Merge with Trinity 702.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r--src/game/Chat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp
index 1f352a16cba..fe7949fc700 100644
--- a/src/game/Chat.cpp
+++ b/src/game/Chat.cpp
@@ -845,8 +845,8 @@ int ChatHandler::ParseCommands(const char* text)
ASSERT(text);
ASSERT(*text);
- //if(m_session->GetSecurity() == 0)
- // return 0;
+ if(m_session->GetSecurity() == 0)
+ return 0;
/// chat case (.command or !command format)
if(m_session)
@@ -869,7 +869,7 @@ int ChatHandler::ParseCommands(const char* text)
if(text[0] == '!' || text[0] == '.')
++text;
- if(!ExecuteCommandInTable(getCommandTable(), text, fullcmd) && m_session->GetSecurity() > SEC_PLAYER)
+ if(!ExecuteCommandInTable(getCommandTable(), text, fullcmd))
SendSysMessage(LANG_NO_CMD);
return 1;