333 if (bounds.first == bounds.second)
335 TC_LOG_TRACE(
"chat.system",
"ChatHandler::isValidChatMessage('%s'): skill line not found for spell %u", context,
_spell->
Id);
341 TC_LOG_TRACE(
"chat.system",
"ChatHandler::isValidChatMessage('%s'): skill line ability not found for spell %u", context,
_spell->
Id);
347 TC_LOG_TRACE(
"chat.system",
"ChatHandler::isValidChatMessage('%s'): skill line not found for skill %u", context, skillInfo->
SkillLine);
352 if (skillLineNameLength > 0 && strncmp(skillLine->
DisplayName_lang, buffer, skillLineNameLength) == 0)
356 uint32 spellNameLength = strlen(buffer) - skillLineNameLength - 2;
357 memmove(buffer, buffer + skillLineNameLength + 2, spellNameLength + 1);
364 TC_LOG_TRACE(
"chat.system",
"ChatHandler::isValidChatMessage('%s'): linked spell (id: %u) name wasn't found in any localization", context,
_spell->
Id);
Definition: DBCStructure.h:952
uint32 Id
Definition: SpellInfo.h:329
DBCStorage< SkillLineEntry > sSkillLineStore(SkillLinefmt)
virtual bool ValidateName(char *buffer, const char *context)=0
Definition: ChatLink.cpp:99
Definition: SharedDefines.h:361
std::pair< SkillLineAbilityMap::const_iterator, SkillLineAbilityMap::const_iterator > SkillLineAbilityMapBounds
Definition: SpellMgr.h:549
uint32 SkillLine
Definition: DBCStructure.h:968
SpellInfo const * _spell
Definition: ChatLink.h:100
bool HasAttribute(SpellAttr0 attribute) const
Definition: SpellInfo.h:462
#define TC_LOG_TRACE(filterType__,...)
Definition: Log.h:195
#define sSpellMgr
Definition: SpellMgr.h:756
char * SpellName
Definition: SpellInfo.h:392
uint32_t uint32
Definition: Define.h:150
char * DisplayName_lang
Definition: DBCStructure.h:956
Definition: DBCStructure.h:965