Browse Source

fix #2081

Increase default/recommended mask list size limit to 150;
SAMODE overrides enforcement of the limit.
tags/v2.14.0-rc1
Shivaram Lingamneni 3 weeks ago
parent
commit
0517b5571d
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      default.yaml
  2. 1
    1
      irc/modes.go
  3. 1
    1
      traditional.yaml

+ 1
- 1
default.yaml View File

@@ -885,7 +885,7 @@ limits:
885 885
     whowas-entries: 100
886 886
 
887 887
     # maximum length of channel lists (beI modes)
888
-    chan-list-modes: 60
888
+    chan-list-modes: 150
889 889
 
890 890
     # maximum number of messages to accept during registration (prevents
891 891
     # DoS / resource exhaustion attacks):

+ 1
- 1
irc/modes.go View File

@@ -215,7 +215,7 @@ func (channel *Channel) ApplyChannelModeChanges(client *Client, isSamode bool, c
215 215
 			mask := change.Arg
216 216
 			switch change.Op {
217 217
 			case modes.Add:
218
-				if channel.lists[change.Mode].Length() >= client.server.Config().Limits.ChanListModes {
218
+				if !isSamode && channel.lists[change.Mode].Length() >= client.server.Config().Limits.ChanListModes {
219 219
 					if !listFullWarned[change.Mode] {
220 220
 						rb.Add(nil, client.server.name, ERR_BANLISTFULL, details.nick, chname, change.Mode.String(), client.t("Channel list is full"))
221 221
 						listFullWarned[change.Mode] = true

+ 1
- 1
traditional.yaml View File

@@ -856,7 +856,7 @@ limits:
856 856
     whowas-entries: 100
857 857
 
858 858
     # maximum length of channel lists (beI modes)
859
-    chan-list-modes: 60
859
+    chan-list-modes: 150
860 860
 
861 861
     # maximum number of messages to accept during registration (prevents
862 862
     # DoS / resource exhaustion attacks):

Loading…
Cancel
Save