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:
Machiavelli
2009-06-08 20:56:24 +02:00
parent 5ae74c5b58
commit 79c15a3d75

View File

@@ -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
{