Core/World: Remove autobroadcast notifications from console (only showing when viewed in loglevel 3 (debug)) + some codestyle changes

--HG--
branch : trunk
This commit is contained in:
click
2010-10-22 22:56:42 +02:00
parent e67f04d362
commit f16c94701d
+3 -6
View File
@@ -2568,18 +2568,15 @@ void World::SendAutoBroadcast()
uint32 abcenter = sWorld.getIntConfig(CONFIG_AUTOBROADCAST_CENTER);
if (abcenter == 0)
{
sWorld.SendWorldText(LANG_AUTO_BROADCAST, msg.c_str());
sLog.outString("AutoBroadcast: '%s'",msg.c_str());
}
else if (abcenter == 1)
{
WorldPacket data(SMSG_NOTIFICATION, (msg.size()+1));
data << msg;
sWorld.SendGlobalMessage(&data);
sLog.outString("AutoBroadcast: '%s'",msg.c_str());
}
else if (abcenter == 2)
{
sWorld.SendWorldText(LANG_AUTO_BROADCAST, msg.c_str());
@@ -2588,8 +2585,8 @@ void World::SendAutoBroadcast()
data << msg;
sWorld.SendGlobalMessage(&data);
sLog.outString("AutoBroadcast: '%s'",msg.c_str());
}
sLog.outDebug("AutoBroadcast: '%s'",msg.c_str());
}
void World::UpdateRealmCharCount(uint32 accountId)