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

+ 1
- 1
irc/modes.go View File

215
 			mask := change.Arg
215
 			mask := change.Arg
216
 			switch change.Op {
216
 			switch change.Op {
217
 			case modes.Add:
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
 					if !listFullWarned[change.Mode] {
219
 					if !listFullWarned[change.Mode] {
220
 						rb.Add(nil, client.server.name, ERR_BANLISTFULL, details.nick, chname, change.Mode.String(), client.t("Channel list is full"))
220
 						rb.Add(nil, client.server.name, ERR_BANLISTFULL, details.nick, chname, change.Mode.String(), client.t("Channel list is full"))
221
 						listFullWarned[change.Mode] = true
221
 						listFullWarned[change.Mode] = true

+ 1
- 1
traditional.yaml View File

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

Loading…
Cancel
Save