Misc cleanups
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -411,7 +411,5 @@ namespace Game.Chat.Commands
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1266,7 +1266,6 @@ namespace Game.Chat
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[CommandGroup("send")]
|
||||
class SendCommands
|
||||
{
|
||||
|
||||
@@ -236,6 +236,7 @@ namespace Game.Chat
|
||||
return true;
|
||||
}
|
||||
|
||||
[CommandGroup("name")]
|
||||
class TeleNameCommands
|
||||
{
|
||||
[Command("", RBACPermissions.CommandTeleName, true)]
|
||||
@@ -279,6 +280,7 @@ namespace Game.Chat
|
||||
return DoNameTeleport(handler, player, tele.mapId, new Position(tele.posX, tele.posY, tele.posZ, tele.orientation), tele.name);
|
||||
}
|
||||
|
||||
[CommandGroup("npc")]
|
||||
class TeleNameNpcCommands
|
||||
{
|
||||
[Command("guid", RBACPermissions.CommandTeleName, true)]
|
||||
|
||||
Reference in New Issue
Block a user