mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Code Style (game + scripts only):
"!=" --> " != " (when needed) " !=" --> " !=" "!= " --> "!= " --HG-- branch : trunk
This commit is contained in:
@@ -637,7 +637,7 @@ void World::LoadConfigSettings(bool reload)
|
||||
if (reload)
|
||||
{
|
||||
uint32 val = sConfig.GetIntDefault("WorldServerPort", DEFAULT_WORLDSERVER_PORT);
|
||||
if (val!=m_configs[CONFIG_PORT_WORLD])
|
||||
if (val != m_configs[CONFIG_PORT_WORLD])
|
||||
sLog.outError("WorldServerPort option can't be changed at Trinityd.conf reload, using current value (%u).",m_configs[CONFIG_PORT_WORLD]);
|
||||
}
|
||||
else
|
||||
@@ -646,7 +646,7 @@ void World::LoadConfigSettings(bool reload)
|
||||
if (reload)
|
||||
{
|
||||
uint32 val = sConfig.GetIntDefault("SocketSelectTime", DEFAULT_SOCKET_SELECT_TIME);
|
||||
if (val!=m_configs[CONFIG_SOCKET_SELECTTIME])
|
||||
if (val != m_configs[CONFIG_SOCKET_SELECTTIME])
|
||||
sLog.outError("SocketSelectTime option can't be changed at Trinityd.conf reload, using current value (%u).",m_configs[CONFIG_SOCKET_SELECTTIME]);
|
||||
}
|
||||
else
|
||||
@@ -661,7 +661,7 @@ void World::LoadConfigSettings(bool reload)
|
||||
if (reload)
|
||||
{
|
||||
uint32 val = sConfig.GetIntDefault("GameType", 0);
|
||||
if (val!=m_configs[CONFIG_GAME_TYPE])
|
||||
if (val != m_configs[CONFIG_GAME_TYPE])
|
||||
sLog.outError("GameType option can't be changed at Trinityd.conf reload, using current value (%u).",m_configs[CONFIG_GAME_TYPE]);
|
||||
}
|
||||
else
|
||||
@@ -670,7 +670,7 @@ void World::LoadConfigSettings(bool reload)
|
||||
if (reload)
|
||||
{
|
||||
uint32 val = sConfig.GetIntDefault("RealmZone", REALM_ZONE_DEVELOPMENT);
|
||||
if (val!=m_configs[CONFIG_REALM_ZONE])
|
||||
if (val != m_configs[CONFIG_REALM_ZONE])
|
||||
sLog.outError("RealmZone option can't be changed at Trinityd.conf reload, using current value (%u).",m_configs[CONFIG_REALM_ZONE]);
|
||||
}
|
||||
else
|
||||
@@ -747,7 +747,7 @@ void World::LoadConfigSettings(bool reload)
|
||||
if (reload)
|
||||
{
|
||||
uint32 val = sConfig.GetIntDefault("MaxPlayerLevel", DEFAULT_MAX_LEVEL);
|
||||
if (val!=m_configs[CONFIG_MAX_PLAYER_LEVEL])
|
||||
if (val != m_configs[CONFIG_MAX_PLAYER_LEVEL])
|
||||
sLog.outError("MaxPlayerLevel option can't be changed at config reload, using current value (%u).",m_configs[CONFIG_MAX_PLAYER_LEVEL]);
|
||||
}
|
||||
else
|
||||
@@ -974,7 +974,7 @@ void World::LoadConfigSettings(bool reload)
|
||||
if (reload)
|
||||
{
|
||||
uint32 val = sConfig.GetIntDefault("Expansion",1);
|
||||
if (val!=m_configs[CONFIG_EXPANSION])
|
||||
if (val != m_configs[CONFIG_EXPANSION])
|
||||
sLog.outError("Expansion option can't be changed at Trinityd.conf reload, using current value (%u).",m_configs[CONFIG_EXPANSION]);
|
||||
}
|
||||
else
|
||||
@@ -1151,12 +1151,12 @@ void World::LoadConfigSettings(bool reload)
|
||||
|
||||
///- Read the "Data" directory from the config file
|
||||
std::string dataPath = sConfig.GetStringDefault("DataDir","./");
|
||||
if (dataPath.at(dataPath.length()-1)!='/' && dataPath.at(dataPath.length()-1)!='\\')
|
||||
if (dataPath.at(dataPath.length()-1) != '/' && dataPath.at(dataPath.length()-1) != '\\')
|
||||
dataPath.append("/");
|
||||
|
||||
if (reload)
|
||||
{
|
||||
if (dataPath!=m_dataPath)
|
||||
if (dataPath != m_dataPath)
|
||||
sLog.outError("DataDir option can't be changed at Trinityd.conf reload, using current value (%s).",m_dataPath.c_str());
|
||||
}
|
||||
else
|
||||
@@ -2211,7 +2211,7 @@ BanReturn World::BanAccount(BanMode mode, std::string nameOrIP, std::string dura
|
||||
Field* fieldsAccount = resultAccounts->Fetch();
|
||||
uint32 account = fieldsAccount->GetUInt32();
|
||||
|
||||
if (mode!=BAN_IP)
|
||||
if (mode != BAN_IP)
|
||||
{
|
||||
//No SQL injection as strings are escaped
|
||||
loginDatabase.PExecute("INSERT INTO account_banned VALUES ('%u', UNIX_TIMESTAMP(), UNIX_TIMESTAMP()+%u, '%s', '%s', '1')",
|
||||
|
||||
Reference in New Issue
Block a user