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:
parent
c46d117d15
commit
294471dcfd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue