From b60e2ede51c725e6ea5d45736e28138bfd4b0c43 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Tue, 11 Dec 2018 19:24:05 +0200 Subject: [PATCH] Allow clients to unban via console if they have the permission to unban (no need for permission for the specific console commands). --- Barotrauma/BarotraumaClient/Source/DebugConsole.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Barotrauma/BarotraumaClient/Source/DebugConsole.cs b/Barotrauma/BarotraumaClient/Source/DebugConsole.cs index 102adfbbd..baa814684 100644 --- a/Barotrauma/BarotraumaClient/Source/DebugConsole.cs +++ b/Barotrauma/BarotraumaClient/Source/DebugConsole.cs @@ -147,6 +147,9 @@ namespace Barotrauma case "ban": case "banip": return client.HasPermission(ClientPermissions.Ban); + case "unban": + case "unbanip": + return client.HasPermission(ClientPermissions.Unban); case "netstats": case "help": case "dumpids":