grim/pidgin

Use the leaky bucket algorithm to rate limit irc messages.
draft 2.x.y-irc-rate-limiting
2021-02-24, Gary Kramlich
5bbd0f3a7d4f
Use the leaky bucket algorithm to rate limit irc messages.

The default values were suggested by an operator of freenode.

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.
/** @page dbus-server-signals DBus Server Signals
@signals
@signal dbus-method-called
@signal dbus-introspect
@endsignals
@see dbus-server.h
<hr>
@signaldef dbus-method-called
@signalproto
gboolean (*dbus_method_called)(DBusConnection *connection,
DBusMessage *message);
@endsignalproto
@signaldesc
Emitted when a dbus method is going to be called.
@param connection The DBus connection.
@param message The DBus message.
@return TRUE if signal handler handled the method. ???
@endsignaldef
@signaldef dbus-introspect
@signalproto
void (*dbus_introspect)(GList **bidings_list);
@endsignalproto
@signaldesc
???
@param bindings_list ???
@endsignaldef
*/
// vim: syntax=c.doxygen tw=75 et