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/
/** @page certificate-signals Certificate Signals
@signals
@signal certificate-stored
@signal certificate-deleted
@endsignals
@see certificate.h
<hr>
@signaldef certificate-stored
@signalproto
void (*certificate_stored)(PurpleCertificatePool *pool, const gchar *id, gpointer data);
@endsignalproto
@signaldesc
Emitted when a pool stores a certificate. Connect to the pool instance.
@param pool Pool the certificate has been stored into
@param id Key the certificate was stored under
@endsignaldef
@signaldef certificate-deleted
@signalproto
void (*certificate_deleted)(PurpleCertificatePool *pool, const gchar *id, gpointer data);
@endsignalproto
@signaldesc
Emitted when a pool deletes a certificate. Connect to the pool instance.
@param pool Pool the certificate was deleted from
@param id Key that was deleted
@endsignaldef
*/
// vim: syntax=c.doxygen tw=75 et