pidgin/pidgin

Use the leaky bucket algorithm to rate limit irc messages.
release-2.x.y
2022-04-23, Gary Kramlich
c49dcf00bee6
Use the leaky bucket algorithm to rate limit irc messages.

The default values were suggested by an operator of libera.

We don't rate limit the login process, nor parts and quits. However, if you
paste a bunch of text and then part a channel, you will be spammed with a
bunch of "no such nick/channel" error dialogs. I tried to work around this,
but the alternative just makes irc unresponsive until all the pasted messages
are sent. That said, other messages are still delayed while these errors
dialogs are slowly popping up.

Testing Done:
Lots

Bugs closed: PIDGIN-11089

Reviewed at https://reviews.imfreedom.org/r/524/
environment:
- DOCS_BUILD_IMAGE=pidgin/2.x.y-builders:debian-bookworm-amd64
tasks:
clean:
type: convey/clean
files:
- pidgin2-docs
docs-build:
type: docker/run
image: ${DOCS_BUILD_IMAGE}
workdir: ${CONVEY_WORKSPACE}
script:
- set -ex
- ./autogen.sh --disable-gevolution
- make -s -j$(nproc) docs
docs-clean:
type: convey/clean
files:
- pidgin2-docs
docs-export:
type: docker/export
files:
- doc/html:pidgin2-docs
import:
type: docker/import
files: .:.
plans:
clean:
stages:
- tasks: [clean]
docs:
stages:
- tasks: [docs-clean, import, docs-build, docs-export]