33 TC_LOG_DEBUG(
"chat.system",
"CMSG_JOIN_CHANNEL {} ChatChannelId: {}, CreateVoiceSession: {}, Internal: {}, ChannelName: {}, Password: {}",
43 if (!zone || !
GetPlayer()->CanJoinConstantChannelInZone(channel, zone))
90 channel->SetPassword(packet.
Password);
98 TC_LOG_DEBUG(
"chat.system",
"CMSG_LEAVE_CHANNEL {} ChannelName: {}, ZoneChannelID: {}",
111 if (!zone || !
GetPlayer()->CanJoinConstantChannelInZone(channel, zone))
118 channel->LeaveChannel(
GetPlayer(),
true);
169 TC_LOG_DEBUG(
"chat.system",
"{} {} ChannelName: {}, Name: {}, Name too long.",
174 TC_LOG_DEBUG(
"chat.system",
"{} {} ChannelName: {}, Name: {}",
233 TC_LOG_DEBUG(
"chat.system",
"{} {} ChannelName: {}, Password: {}, Password too long.",
238 TC_LOG_DEBUG(
"chat.system",
"{} {} ChannelName: {}, Password: {}",
static size_t const MAX_CHANNEL_PASS_STR
static size_t const MAX_CHANNEL_NAME_STR
@ CHAT_INVALID_NAME_NOTICE
DBCStorage< ChatChannelsEntry > sChatChannelsStore(ChatChannelsEntryfmt)
DBCStorage< AreaTableEntry > sAreaTableStore(AreaTableEntryfmt)
#define TC_LOG_DEBUG(filterType__,...)
#define TC_LOG_ERROR(filterType__,...)
bool normalizePlayerName(std::string &name)
size_t utf8length(std::string &utf8str)
Channel * CreateCustomChannel(std::string const &name)
Channel * GetCustomChannel(std::string const &name) const
static ChannelMgr * ForTeam(uint32 team)
Channel * GetSystemChannel(uint32 channelId, AreaTableEntry const *zoneEntry=nullptr)
static Channel * GetChannelForPlayerByNamePart(std::string const &namePart, Player *playerSearcher)
std::string _Channel
Channel Name.
WorldPacket const * Write() override
OpcodeClient GetOpcode() const
void HandleLeaveChannel(WorldPackets::Channel::LeaveChannel &packet)
void SendPacket(WorldPacket const *packet)
Send a packet to the client.
bool DisallowHyperlinksAndMaybeKick(std::string const &str)
void HandleJoinChannel(WorldPackets::Channel::JoinChannel &packet)
std::string GetPlayerInfo() const
Player * GetPlayer() const
void HandleChannelPassword(WorldPackets::Channel::ChannelPassword &packet)
void HandleChannelPlayerCommand(WorldPackets::Channel::ChannelPlayerCommand &packet)
void HandleChannelCommand(WorldPackets::Channel::ChannelCommand &packet)
std::string GetOpcodeNameForLogging(Opcodes opcode)
Lookup opcode name for human understandable logging.
@ CMSG_CHANNEL_UNSILENCE_ALL
@ CMSG_CHANNEL_SILENCE_VOICE
@ CMSG_CHANNEL_DISPLAY_LIST
@ CMSG_DECLINE_CHANNEL_INVITE
@ CMSG_CHANNEL_SILENCE_ALL
@ CMSG_CHANNEL_ANNOUNCEMENTS
@ CMSG_CHANNEL_UNSILENCE_VOICE
@ CMSG_CHANNEL_UNMODERATOR
@ CMSG_GET_CHANNEL_MEMBER_COUNT