Skip to content

Commit

Permalink
Merge pull request #2165 from slingamn/banlimit
Browse files Browse the repository at this point in the history
fix #2081
  • Loading branch information
slingamn authored Jun 4, 2024
2 parents 1117680 + 0517b55 commit 6326982
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ limits:
whowas-entries: 100

# maximum length of channel lists (beI modes)
chan-list-modes: 60
chan-list-modes: 150

# maximum number of messages to accept during registration (prevents
# DoS / resource exhaustion attacks):
Expand Down
2 changes: 1 addition & 1 deletion irc/modes.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (channel *Channel) ApplyChannelModeChanges(client *Client, isSamode bool, c
mask := change.Arg
switch change.Op {
case modes.Add:
if channel.lists[change.Mode].Length() >= client.server.Config().Limits.ChanListModes {
if !isSamode && channel.lists[change.Mode].Length() >= client.server.Config().Limits.ChanListModes {
if !listFullWarned[change.Mode] {
rb.Add(nil, client.server.name, ERR_BANLISTFULL, details.nick, chname, change.Mode.String(), client.t("Channel list is full"))
listFullWarned[change.Mode] = true
Expand Down
2 changes: 1 addition & 1 deletion traditional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ limits:
whowas-entries: 100

# maximum length of channel lists (beI modes)
chan-list-modes: 60
chan-list-modes: 150

# maximum number of messages to accept during registration (prevents
# DoS / resource exhaustion attacks):
Expand Down

0 comments on commit 6326982

Please sign in to comment.