fixed channel join display message

This commit is contained in:
False.Genesis 2007-06-09 00:09:33 +00:00
parent 33b8cd4967
commit c2e83e27fb

View File

@ -121,11 +121,11 @@ void Channel::HandleNotifyOpcode(WorldPacket &packet)
} }
} }
log("%s joined channel %s", channel.c_str()); log("%s joined channel %s",name.c_str(),channel.c_str());
break; break;
// Player leaved channel you are on // Player leaved channel you are on
case 0x01: case LEFT:
packet >> guid; packet >> guid;
if(guid){ if(guid){
name = _worldSession->plrNameCache.GetName(guid); name = _worldSession->plrNameCache.GetName(guid);
@ -140,13 +140,13 @@ void Channel::HandleNotifyOpcode(WorldPacket &packet)
break; break;
// You joined channel successfully // You joined channel successfully
case 0x02: case YOUJOINED:
log("Joined channel %s", channel.c_str()); log("Joined channel %s", channel.c_str());
channels.push_back(channel); channels.push_back(channel);
break; break;
// You leaved channel successfully // You leaved channel successfully
case 0x03: case YOULEFT:
for(std::vector<std::string>::iterator i = channels.begin(); i != channels.end(); i++) for(std::vector<std::string>::iterator i = channels.begin(); i != channels.end(); i++)
{ {
if(*i == channel) if(*i == channel)
@ -159,12 +159,12 @@ void Channel::HandleNotifyOpcode(WorldPacket &packet)
break; break;
// Wrong password while trying to join channel // Wrong password while trying to join channel
case 0x04: case WRONGPASS:
log("Could not join channel %s (Wrong password)", channel.c_str()); log("Could not join channel %s (Wrong password)", channel.c_str());
break; break;
// Not on channel while trying to write to channel etc. // Not on channel while trying to write to channel etc.
case 0x05: case NOTON1:
log("You are not on channel %s", channel.c_str()); log("You are not on channel %s", channel.c_str());
break; break;
} }