diff options
author | Blaymoira <none@none> | 2008-12-28 18:09:33 +0100 |
---|---|---|
committer | Blaymoira <none@none> | 2008-12-28 18:09:33 +0100 |
commit | e210432ace0352c369e868a262105899a8f4763a (patch) | |
tree | ba9a1fcdce2a092e774e0a43779327f47e80182d /src | |
parent | 9fa37dc69344a28a585bc2dee6713d7ebaa03d28 (diff) |
*Not check on security level 0 the command syntax - by Machiavelli
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Chat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index 1beb78b9419..d86e941c3f5 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -842,8 +842,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) @@ -866,7 +866,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; |