diff options
Diffstat (limited to 'src/server/game/Handlers/VoiceChatHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/VoiceChatHandler.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/server/game/Handlers/VoiceChatHandler.cpp b/src/server/game/Handlers/VoiceChatHandler.cpp index 9cff49a6b49..6c236ff39af 100644 --- a/src/server/game/Handlers/VoiceChatHandler.cpp +++ b/src/server/game/Handlers/VoiceChatHandler.cpp @@ -30,14 +30,12 @@ void WorldSession::HandleVoiceSessionEnableOpcode(WorldPacket& recvData) recvData.read_skip<uint8>(); } -void WorldSession::HandleChannelVoiceOnOpcode(WorldPacket& /*recvData*/) +void WorldSession::HandleChannelVoiceOnOpcode(WorldPacket& recvData) { TC_LOG_DEBUG(LOG_FILTER_NETWORKIO, "WORLD: CMSG_CHANNEL_VOICE_ON"); // Enable Voice button in channel context menu - /* structure: - 8 bits -> channel name length - string -> channel name - */ + recvData.ReadString(recvData.ReadBits(8)); + //channel->EnableVoice(recvData.GetOpcode() == CMSG_CHANNEL_VOICE_ON); } void WorldSession::HandleSetActiveVoiceChannel(WorldPacket& recvData) |