25#define TC_LOG_CHAT(TYPE, ...) \
26 if (lang != LANG_ADDON && lang != LANG_ADDON_LOGGED) \
27 TC_LOG_DEBUG("chat.log." TYPE, __VA_ARGS__); \
29 TC_LOG_DEBUG("chat.log.addon." TYPE, __VA_ARGS__);
41 TC_LOG_CHAT(
"say",
"Player {} says (language {}): {}",
51 TC_LOG_CHAT(
"yell",
"Player {} yells (language {}): {}",
60 player->
GetName(), receiver ? receiver->
GetName().c_str() :
"<unknown>", msg);
70 TC_LOG_CHAT(
"party",
"Player {} tells group with leader {}: {}",
80 TC_LOG_CHAT(
"raid",
"Player {} tells raid with leader {}: {}",
85 TC_LOG_CHAT(
"raid",
"Leader player {} tells raid: {}",
90 TC_LOG_CHAT(
"raid",
"Leader player {} warns raid with: {}",
95 TC_LOG_CHAT(
"bg",
"Player {} tells instance with leader {}: {}",
100 TC_LOG_CHAT(
"bg",
"Leader player {} tells instance: {}",
111 TC_LOG_CHAT(
"guild",
"Player {} tells guild {}: {}",
112 player->
GetName(), guild ? guild->
GetName().c_str() :
"<unknown>", msg);
116 TC_LOG_CHAT(
"guild.officer",
"Player {} tells guild {} officers: {}",
117 player->
GetName(), guild ? guild->
GetName().c_str() :
"<unknown>", msg);
124 bool isSystem = channel &&
132 TC_LOG_CHAT(
"system",
"Player {} tells channel {}: {}",
137 std::string channelName = channel ? channel->
GetName() :
"<unknown>";
138 TC_LOG_CHAT(
"channel." + channelName,
"Player {} tells channel {}: {}",
139 player->
GetName(), channelName, msg);
@ CHAT_MSG_INSTANCE_CHAT_LEADER
#define TC_LOG_CHAT(TYPE,...)
std::string GetName(LocaleConstant locale=DEFAULT_LOCALE) const
bool HasFlag(uint8 flag) const
void OnChat(Player *player, uint32 type, uint32 lang, std::string &msg) override
void OnChat(Player *player, uint32 type, uint32 lang, std::string &msg, Guild *guild) override
void OnChat(Player *player, uint32, uint32 lang, std::string &msg, Player *receiver) override
void OnChat(Player *player, uint32 type, uint32 lang, std::string &msg, Group *group) override
void OnChat(Player *player, uint32, uint32 lang, std::string &msg, Channel *channel) override
const char * GetLeaderName() const
std::string const & GetName() const
std::string const & GetName() const