this logs all of them, just change the + lines that you dont want to ///sLog.whatever
Code:
Index: ChatHandler.cpp
===================================================================
--- ChatHandler.cpp (revision 2546)
+++ ChatHandler.cpp (working copy)
@@ -101,7 +101,7 @@
data = sChatHandler.FillMessageData( CHAT_MSG_EMOTE, CanUseCommand('c') ? LANG_UNIVERSAL : lang, msg.c_str(), _player->GetGUID(), _player->bGMTagOn ? 4 : 0 );
GetPlayer()->SendMessageToSet( data, true ,true );
- //sLog.outString("[emote] %s: %s", _player->GetName(), msg.c_str());
+ sLog.outString("[emote] %s: %s", _player->GetName(), msg.c_str());
delete data;
pMsg=msg.c_str();
@@ -134,7 +134,7 @@
}
- //sLog.outString("[say] %s: %s", _player->GetName(), msg.c_str());
+ sLog.outString("[say] %s: %s", _player->GetName(), msg.c_str());
delete data;
pMsg=msg.c_str();
pMisc=0;
@@ -192,7 +192,7 @@
_player->GetGroup()->Unlock();
}
}
- //sLog.outString("[party] %s: %s", _player->GetName(), msg.c_str());
+ sLog.outString("[party] %s: %s", _player->GetName(), msg.c_str());
delete data;
pMsg=msg.c_str();
pMisc=0;
@@ -250,7 +250,7 @@
//sWorld.SendZoneMessage(data, GetPlayer()->GetZoneId(), this);
_player->GetMapMgr()->SendChatMessageToCellPlayers(_player, data, 2, 1, lang, this);
delete data;
- //sLog.outString("[yell] %s: %s", _player->GetName(), msg.c_str());
+ sLog.outString("[yell] %s: %s", _player->GetName(), msg.c_str());
pMsg=msg.c_str();
pMisc=0;
} break;
@@ -320,7 +320,7 @@
delete data;
}
- //sLog.outString("[whisper] %s to %s: %s", _player->GetName(), to.c_str(), msg.c_str());
+ sLog.outString("[whisper] %s to %s: %s", _player->GetName(), to.c_str(), msg.c_str());
pMsg=msg.c_str();
pMisc=to.c_str();
} break;
@@ -341,7 +341,7 @@
if(chn)
chn->Say(GetPlayer(),msg.c_str(), NULL, false);
- //sLog.outString("[%s] %s: %s", channel.c_str(), _player->GetName(), msg.c_str());
+ sLog.outString("[%s] %s: %s", channel.c_str(), _player->GetName(), msg.c_str());
pMsg=msg.c_str();
pMisc=channel.c_str();