[Admin QOL] +Adminchat flag (#26930)

This commit is contained in:
Tainakov
2024-04-27 14:17:46 +03:00
committed by GitHub
parent 4d223f2efd
commit 6d6e7f0c98
3 changed files with 7 additions and 2 deletions

View File

@@ -546,7 +546,7 @@ public sealed class ChatUIController : UIController
}
// only admins can see / filter asay
if (_admin.HasFlag(AdminFlags.Admin))
if (_admin.HasFlag(AdminFlags.Adminchat))
{
FilterableChannels |= ChatChannel.Admin;
FilterableChannels |= ChatChannel.AdminAlert;

View File

@@ -5,7 +5,7 @@ using Robust.Shared.Console;
namespace Content.Server.Chat.Commands
{
[AdminCommand(AdminFlags.Admin)]
[AdminCommand(AdminFlags.Adminchat)]
internal sealed class AdminChatCommand : IConsoleCommand
{
public string Command => "asay";

View File

@@ -99,6 +99,11 @@
/// </summary>
Stealth = 1 << 16,
///<summary>
/// Allows you to use Admin chat
///</summary>
Adminchat = 1 << 17,
/// <summary>
/// Dangerous host permissions like scsi.
/// </summary>