3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

fix permissions check in CS HOWTOBAN

This commit is contained in:
Shivaram Lingamneni 2021-01-21 16:48:57 -05:00
parent 6bd396f5a2
commit a237ce428f

View File

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