From fed002d11aed78b431ed0ccada2e2572a5d371c3 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 18 Apr 2021 20:06:00 -0400 Subject: [PATCH] fix #1618 Allow snomasks to be added via oper config block, even if the oper doesn't have `ban` or `snomasks` and therefore can't add snomasks on their own. --- irc/modes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/modes.go b/irc/modes.go index 414a8ebd..9d95966f 100644 --- a/irc/modes.go +++ b/irc/modes.go @@ -86,7 +86,7 @@ func ApplyUserModeChanges(client *Client, changes modes.ModeChanges, force bool, if len(addMasks) != 0 { oper := client.Oper() // #1176: require special operator privileges to subscribe to snomasks - if oper.HasRoleCapab("snomasks") || oper.HasRoleCapab("ban") { + if force || oper.HasRoleCapab("snomasks") || oper.HasRoleCapab("ban") { success = true client.server.snomasks.AddMasks(client, addMasks...) }