From 26f2ef59ef6353ee1afe33947ce5265d5d2389e5 Mon Sep 17 00:00:00 2001 From: equa Date: Sun, 13 Mar 2022 18:41:02 +0000 Subject: support empty lines we now output 0F (irc formatting reset) after every message. it's a little silly but it's consistent, so dealing with it is easy enough. --- TODO | 6 ++---- bot.lua | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index 028c7b4..9272c79 100644 --- a/TODO +++ b/TODO @@ -1,13 +1,11 @@ support joining irc channels with keys -support empty lines -throttle really long messages +throttle really long streams of messages - barring real absurd cases i think the best way to do this would -- be to cut off any more than N (say ten) messages sent to a channel + be to cut off any more than N (say ten) messages sent to a channel within any timespan (say, a second) commands with a lot of output (1000 lines, say) will probably be processed by the queue fast enough to just get rid of them this isn't the best possible system but it will work -support irc auth (configurable USER and also password auth) reasonable interop between unicode and non-unicode - we can just send bytes as-is, but i think this is unwise. we can *accept* bytes as is, which is fine i think, and then make non- diff --git a/bot.lua b/bot.lua index 0704b63..18faea1 100644 --- a/bot.lua +++ b/bot.lua @@ -166,7 +166,7 @@ local function handle_ed_rx(state) command = "PRIVMSG", params = { line[1], - line[3], + line[3] .. "\x0f", } }) elseif line[2] == "quit" then -- cgit 1.3.0-6-gf8a5