diff options
author | megamage <none@none> | 2008-12-28 10:52:24 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-28 10:52:24 -0600 |
commit | 3bbf8d6be8cd67d99fc8c1df3a971fe4e7e680ef (patch) | |
tree | 0264a08b586df36f290a6b1b6a839dcf9b829c75 /src/game/Chat.cpp | |
parent | ac9cced914fb4c9db0b2b64f7fd9f9ab8c7802ee (diff) | |
parent | 9fa37dc69344a28a585bc2dee6713d7ebaa03d28 (diff) |
HG 698.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Chat.cpp')
-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 2cee426fded..c05fd2b35c6 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -859,6 +859,8 @@ int ChatHandler::ParseCommands(const char* text) if(strlen(text) < 2) return 0; + std::string fullcmd = text; // original `text` can't be used. It content destroyed in command code processing. + /// ignore messages staring from many dots. if(text[0] == '.' && text[1] == '.' || text[0] == '!' && text[1] == '!') return 0; @@ -867,9 +869,7 @@ int ChatHandler::ParseCommands(const char* text) if(text[0] == '!' || text[0] == '.') ++text; - std::string fullcmd = text; // original `text` can't be used. It content destroyed in command code processing. - - if(!ExecuteCommandInTable(getCommandTable(), text, fullcmd)) + if(!ExecuteCommandInTable(getCommandTable(), text, fullcmd) && m_session->GetSecurity() > SEC_PLAYER) SendSysMessage(LANG_NO_CMD); return 1; |