Core/Commands: Fixed .account set gmlevel to correctly use realmId specified instead of id of the realm that the command was executed on

This commit is contained in:
Shauren
2011-11-13 18:52:46 +01:00
parent 6a009702aa
commit c5c06f4b72
+1 -1
View File
@@ -473,7 +473,7 @@ public:
LoginDatabase.PExecute("DELETE FROM account_access WHERE id = '%u' AND (RealmID = '%d' OR RealmID = '-1')", targetAccountId, realmID);
if (gm != 0)
LoginDatabase.PExecute("INSERT INTO account_access VALUES ('%u', '%d', '%d')", targetAccountId, gm, realmID);
LoginDatabase.PExecute("INSERT INTO account_access VALUES ('%u', '%d', '%d')", targetAccountId, gm, gmRealmID);
handler->PSendSysMessage(LANG_YOU_CHANGE_SECURITY, targetAccountName.c_str(), gm);
return true;