diff options
-rw-r--r-- | TODO | 6 | ||||
-rw-r--r-- | 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 |