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);
157 TC_LOG_DEBUG(
"chat.system",
"{} {} ChannelName: {}, Name: {}, Name too long.",
162 TC_LOG_DEBUG(
"chat.system",
"{} {} ChannelName: {}, Name: {}",
209 TC_LOG_DEBUG(
"chat.system",
"{} {} ChannelName: {}, Password: {}, Password too long.",
214 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
DB2Storage< ChatChannelsEntry > sChatChannelsStore("ChatChannels.db2", &ChatChannelsLoadInfo::Instance)
DB2Storage< AreaTableEntry > sAreaTableStore("AreaTable.db2", &AreaTableLoadInfo::Instance)
#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)
bool DisallowHyperlinksAndMaybeKick(std::string const &str)
void HandleJoinChannel(WorldPackets::Channel::JoinChannel &packet)
std::string GetPlayerInfo() const
Player * GetPlayer() const
void HandleChannelPlayerCommand(WorldPackets::Channel::ChannelPlayerCommand &packet)
void HandleChannelCommand(WorldPackets::Channel::ChannelCommand &packet)
void SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.
void HandleChannelPassword(WorldPackets::Channel::ChannelPassword &channelPassword)
std::string GetOpcodeNameForLogging(OpcodeClient opcode)
Lookup opcode name for human understandable logging.
@ CMSG_CHAT_CHANNEL_UNBAN
@ CMSG_CHAT_CHANNEL_SILENCE_ALL
@ CMSG_CHAT_CHANNEL_DISPLAY_LIST
@ CMSG_CHAT_CHANNEL_SET_OWNER
@ CMSG_CHAT_CHANNEL_MODERATOR
@ CMSG_CHAT_CHANNEL_DECLINE_INVITE
@ CMSG_CHAT_CHANNEL_INVITE
@ CMSG_CHAT_CHANNEL_UNMODERATOR
@ CMSG_CHAT_CHANNEL_OWNER
@ CMSG_CHAT_CHANNEL_UNSILENCE_ALL
@ CMSG_CHAT_CHANNEL_ANNOUNCEMENTS
std::string ToString(Type &&val, Params &&... params)