A great purge of obsolete macros.

--HG--
branch : trunk
This commit is contained in:
Xanadu
2010-02-05 00:31:28 +01:00
parent b0b261585f
commit a5d1bc77ab
552 changed files with 1147 additions and 1223 deletions
+13 -13
View File
@@ -1185,7 +1185,7 @@ valid examples:
}
else if (reader.get() != '|')
{
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
sLog.outBasic("ChatHandler::isValidChatMessage sequence aborted unexpectedly");
#endif
return false;
@@ -1194,7 +1194,7 @@ valid examples:
// pipe has always to be followed by at least one char
if (reader.peek() == '\0')
{
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
sLog.outBasic("ChatHandler::isValidChatMessage pipe followed by \\0");
#endif
return false;
@@ -1219,7 +1219,7 @@ valid examples:
}
else
{
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
sLog.outBasic("ChatHandler::isValidChatMessage invalid sequence, expected %c but got %c", *validSequenceIterator, commandChar);
#endif
return false;
@@ -1228,7 +1228,7 @@ valid examples:
else if (validSequence != validSequenceIterator)
{
// no escaped pipes in sequences
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
sLog.outBasic("ChatHandler::isValidChatMessage got escaped pipe in sequence");
#endif
return false;
@@ -1245,7 +1245,7 @@ valid examples:
reader >> c;
if (!c)
{
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
sLog.outBasic("ChatHandler::isValidChatMessage got \\0 while reading color in |c command");
#endif
return false;
@@ -1263,7 +1263,7 @@ valid examples:
color |= 10+c-'a';
continue;
}
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
sLog.outBasic("ChatHandler::isValidChatMessage got non hex char '%c' while reading color", c);
#endif
return false;
@@ -1281,7 +1281,7 @@ valid examples:
linkedItem= objmgr.GetItemPrototype(atoi(buffer));
if (!linkedItem)
{
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
sLog.outBasic("ChatHandler::isValidChatMessage got invalid itemID %u in |item command", atoi(buffer));
#endif
return false;
@@ -1289,7 +1289,7 @@ valid examples:
if (color != ItemQualityColors[linkedItem->Quality])
{
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
sLog.outBasic("ChatHandler::isValidChatMessage linked item has color %u, but user claims %u", ItemQualityColors[linkedItem->Quality],
color);
#endif
@@ -1501,7 +1501,7 @@ valid examples:
}
else
{
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
sLog.outBasic("ChatHandler::isValidChatMessage user sent unsupported link type '%s'", buffer);
#endif
return false;
@@ -1514,7 +1514,7 @@ valid examples:
// links start with '['
if (reader.get() != '[')
{
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
sLog.outBasic("ChatHandler::isValidChatMessage link caption doesn't start with '['");
#endif
return false;
@@ -1640,7 +1640,7 @@ valid examples:
}
if (!foundName)
{
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
sLog.outBasic("ChatHandler::isValidChatMessage linked item name wasn't found in any localization");
#endif
return false;
@@ -1672,7 +1672,7 @@ valid examples:
// no further payload
break;
default:
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
sLog.outBasic("ChatHandler::isValidChatMessage got invalid command |%c", commandChar);
#endif
return false;
@@ -1680,7 +1680,7 @@ valid examples:
}
// check if every opened sequence was also closed properly
#ifdef MANGOS_DEBUG
#ifdef TRINITY_DEBUG
if (validSequence != validSequenceIterator)
sLog.outBasic("ChatHandler::isValidChatMessage EOF in active sequence");
#endif