diff options
author | megamage <none@none> | 2009-04-29 00:31:03 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-29 00:31:03 -0500 |
commit | 295b634ca691ff87e8451593e277211fcb02c929 (patch) | |
tree | 75fa8ebd556019305b031531e2fa9b3937e79553 /src/game/Chat.cpp | |
parent | de11b9e901d1d1caa0634fad541f08f11c5781af (diff) |
[7731] Some code cleanups, warrning fixes. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r-- | src/game/Chat.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index 789936302fc..c2293fb8848 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -785,7 +785,7 @@ bool ChatHandler::HasLowerSecurityAccount(WorldSession* target, uint32 target_ac else return true; // caller must report error for (target==NULL && target_account==0) - if (m_session->GetSecurity() < target_sec || strong && m_session->GetSecurity() <= target_sec) + if (m_session->GetSecurity() < target_sec || (strong && m_session->GetSecurity() <= target_sec)) { SendSysMessage(LANG_YOURS_SECURITY_IS_LOW); SetSentErrorMessage(true); @@ -1030,23 +1030,23 @@ int ChatHandler::ParseCommands(const char* text) std::string fullcmd = text; /// chat case (.command or !command format) - if(m_session) + if (m_session) { if(text[0] != '!' && text[0] != '.') return 0; } /// ignore single . and ! in line - if(strlen(text) < 2) + if (strlen(text) < 2) return 0; // 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] == '!') + if ((text[0] == '.' && text[1] == '.') || (text[0] == '!' && text[1] == '!')) return 0; /// skip first . or ! (in console allowed use command with . and ! and without its) - if(text[0] == '!' || text[0] == '.') + if (text[0] == '!' || text[0] == '.') ++text; if(!ExecuteCommandInTable(getCommandTable(), text, fullcmd)) |