Replaced hardcoded value with enum.

Added some comments.
This commit is contained in:
tomrus88 2010-04-14 17:41:58 +04:00
parent a4c5734256
commit 8bc9aa6a92
3 changed files with 46 additions and 45 deletions

View file

@ -106,5 +106,5 @@ void ChannelMgr::LeftChannel(std::string name)
void ChannelMgr::MakeNotOnPacket(WorldPacket *data, std::string name)
{
data->Initialize(SMSG_CHANNEL_NOTIFY, (1+10)); // we guess size
(*data) << (uint8)0x05 << name;
(*data) << (uint8)CHAT_NOT_MEMBER_NOTICE << name;
}