mirror of
https://github.com/ergochat/ergo.git
synced 2025-01-03 16:42:38 +01:00
fix permissions check in CS HOWTOBAN
This commit is contained in:
parent
6bd396f5a2
commit
a237ce428f
@ -860,7 +860,7 @@ func csHowToBanHandler(service *ircService, server *Server, client *Client, comm
|
|||||||
return
|
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"))
|
service.Notice(rb, client.t("Insufficient privileges"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user