Browse Source

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.
tags/v2.7.0-rc1
Shivaram Lingamneni 3 years ago
parent
commit
fed002d11a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      irc/modes.go

+ 1
- 1
irc/modes.go View File

@@ -86,7 +86,7 @@ func ApplyUserModeChanges(client *Client, changes modes.ModeChanges, force bool,
86 86
 			if len(addMasks) != 0 {
87 87
 				oper := client.Oper()
88 88
 				// #1176: require special operator privileges to subscribe to snomasks
89
-				if oper.HasRoleCapab("snomasks") || oper.HasRoleCapab("ban") {
89
+				if force || oper.HasRoleCapab("snomasks") || oper.HasRoleCapab("ban") {
90 90
 					success = true
91 91
 					client.server.snomasks.AddMasks(client, addMasks...)
92 92
 				}

Loading…
Cancel
Save