From a0ce214430138ddd93dc36c56e4bec533c92d195 Mon Sep 17 00:00:00 2001 From: klea Date: Fri, 1 May 2026 14:56:53 +0000 Subject: Allow setting a global message ratelimit This allows configuring a http2irc instance to have a higher global message sending rate limit different from the default hard-coded rate of 1 message / second, whilst keeping backwards compatibility by keeping default value being the hard-coded one. In addition if the rate limit is set to 0, which can be done live, the bot will stop sending queued messages whilst keeping the IRC connection alive. --- config.example.toml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.example.toml') diff --git a/config.example.toml b/config.example.toml index 59a9f09..3c0c6a0 100644 --- a/config.example.toml +++ b/config.example.toml @@ -11,6 +11,8 @@ #family = #nick = 'h2ibot' #real = 'I am an http2irc bot.' + #sendratelimit = 1 + # Set to the number of lines per second you want the bot to be able to send globally. # Certificate and key for SASL EXTERNAL authentication with NickServ; certfile is a string containing the path to a .pem file which has the certificate and the key, certkeyfile similarly for one containing only the key; default values are empty (None in Python) to disable authentication; the connection is terminated if authentication fails #certfile = #certkeyfile = -- cgit v1.3.1-10-gc9f91