feat(Core/Character): Implement profanity_name (#15156)
This commit is contained in:
parent
6e61f38454
commit
9eb4b3a336
16 changed files with 139 additions and 12 deletions
|
|
@ -363,6 +363,13 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
if (sObjectMgr->IsProfanityName(newName))
|
||||
{
|
||||
handler->SendSysMessage(LANG_PROFANITY_NAME);
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHECK_NAME);
|
||||
stmt->SetData(0, newName);
|
||||
PreparedQueryResult result = CharacterDatabase.Query(stmt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue