aboutsummaryrefslogtreecommitdiff
path: root/src/game/Chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r--src/game/Chat.cpp10
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))