Remove unneeded query for renaming characters that are online, this is handled perfectly with the Player::SetAtLoginFlag and Player::SaveToDB functions already.
--HG-- branch : trunk
This commit is contained in:
1 parent
5ae74c5b58
commit
79c15a3d75
1 file changed
-1
@@ -3102,7 +3102,6 @@ bool ChatHandler::HandleRenameCommand(const char* args)
|
||||
{
|
||||
PSendSysMessage(LANG_RENAME_PLAYER, target->GetName());
|
||||
target->SetAtLoginFlag(AT_LOGIN_RENAME);
|
||||
CharacterDatabase.PExecute("UPDATE characters SET at_login = at_login | '1' WHERE guid = '%u'", target->GetGUIDLow());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user