From a237ce428f9b449ac57843c5f9296d730ea58cdc Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Thu, 21 Jan 2021 16:48:57 -0500 Subject: [PATCH] fix permissions check in CS HOWTOBAN --- irc/chanserv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/chanserv.go b/irc/chanserv.go index 49c37c3a..3531e57c 100644 --- a/irc/chanserv.go +++ b/irc/chanserv.go @@ -860,7 +860,7 @@ func csHowToBanHandler(service *ircService, server *Server, client *Client, comm return } - if !channel.ClientIsAtLeast(client, modes.Operator) || client.HasRoleCapabs("samode") { + if !(channel.ClientIsAtLeast(client, modes.Operator) || client.HasRoleCapabs("samode")) { service.Notice(rb, client.t("Insufficient privileges")) return }