From 294471dcfdbc30a5b78c14f86a2f8a14fbcf2131 Mon Sep 17 00:00:00 2001 From: flashwave Date: Tue, 7 Nov 2023 14:33:07 +0000 Subject: [PATCH] Fixed inverted permission for /create. For the love of god remember to update the permissions table and recalculate before starting back up. --- SharpChat/Commands/CreateChannelCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SharpChat/Commands/CreateChannelCommand.cs b/SharpChat/Commands/CreateChannelCommand.cs index 9e588e8..dd5b7fb 100644 --- a/SharpChat/Commands/CreateChannelCommand.cs +++ b/SharpChat/Commands/CreateChannelCommand.cs @@ -8,7 +8,7 @@ namespace SharpChat.Commands { } public void Dispatch(ChatCommandContext ctx) { - if(ctx.User.Can(ChatUserPermissions.CreateChannel)) { + if(!ctx.User.Can(ChatUserPermissions.CreateChannel)) { ctx.Chat.SendTo(ctx.User, new LegacyCommandResponse(LCR.COMMAND_NOT_ALLOWED, true, $"/{ctx.Name}")); return; }