about summary refs log tree commit diff
diff options
context:
space:
mode:
authorequa <equaa@protonmail.com>2022-03-13 18:41:02 +0000
committerequa <equaa@protonmail.com>2022-03-13 18:41:02 +0000
commit26f2ef59ef6353ee1afe33947ce5265d5d2389e5 (patch)
tree875f2c6813fb48a5fe61207d5fbb45bf54525172
parent2b32f2a2a6c2302cf2ddbdac7bcecad62398da6d (diff)
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.
-rw-r--r--TODO6
-rw-r--r--bot.lua2
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