Merge pull request #1528 from slingamn/issue1176_operprivs

enhancements to operator privilege handling
This commit is contained in:
Shivaram Lingamneni 2021-02-09 22:56:58 -05:00 committed by GitHub
commit bb39399f97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 269 additions and 105 deletions

View file

@ -876,7 +876,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.ChannelOperator) || client.HasRoleCapabs("samode")) {
service.Notice(rb, client.t("Insufficient privileges"))
return
}