aboutsummaryrefslogtreecommitdiff
path: root/src/game/ChannelHandler.cpp
diff options
context:
space:
mode:
authorRat <none@none>2009-07-18 22:15:56 +0200
committerRat <none@none>2009-07-18 22:15:56 +0200
commit7166e8d26fe1bdf0f5765dd3e9b110b395d412e7 (patch)
tree2a685074c350fd74bc5ef47c5057b4fd2d836649 /src/game/ChannelHandler.cpp
parentb7b3264cb5ff6d6393e0d1021e0a233a19852f50 (diff)
*implemented basic Chat Channel saving
*includes owner, banlist,announce,password, saving *todo: -make it cacheble -add a filter to not save some addon spec channels -find someone who does these for me :) --HG-- branch : trunk
Diffstat (limited to 'src/game/ChannelHandler.cpp')
-rw-r--r--src/game/ChannelHandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/ChannelHandler.cpp b/src/game/ChannelHandler.cpp
index 45cdf8c20b2..9706e5657e7 100644
--- a/src/game/ChannelHandler.cpp
+++ b/src/game/ChannelHandler.cpp
@@ -48,8 +48,11 @@ void WorldSession::HandleJoinChannel(WorldPacket& recvPacket)
recvPacket >> pass;
if(ChannelMgr* cMgr = channelMgr(_player->GetTeam()))
+ {
+ cMgr->team = _player->GetTeam();
if(Channel *chn = cMgr->GetJoinChannel(channelname, channel_id))
chn->Join(_player->GetGUID(), pass.c_str());
+ }
}
void WorldSession::HandleLeaveChannel(WorldPacket& recvPacket)