Fixed inverted permission for /create.

For the love of god remember to update the permissions table and recalculate before starting back up.
This commit is contained in:
flash 2023-11-07 14:33:07 +00:00
parent c46d117d15
commit 294471dcfd

View file

@ -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;
}