Misc cleanups

This commit is contained in:
hondacrx
2022-06-09 23:07:07 -04:00
parent 6a1d744d0b
commit cda3f96235
4 changed files with 5 additions and 6 deletions
+3 -3
View File
@@ -452,10 +452,10 @@ namespace Game.Chat
realmID = realmId.Value;
AccountTypes playerSecurity;
if (handler.GetSession() != null)
playerSecurity = Global.AccountMgr.GetSecurity(handler.GetSession().GetAccountId(), realmID);
else
if (handler.IsConsole())
playerSecurity = AccountTypes.Console;
else
playerSecurity = Global.AccountMgr.GetSecurity(handler.GetSession().GetAccountId(), realmID);
// can set security level only for target with less security and to less security that we have
// This is also reject self apply in fact