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
17 changed files with 269 additions and 105 deletions
+1 -1
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
}