From fa3cdb77b078b9bc9d9ac6ad81ae042c5bba06c7 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 12 Mar 2020 10:00:33 -0400 Subject: [PATCH] fix join and invite --- tracer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tracer.py b/tracer.py index e634fcd..1b68451 100644 --- a/tracer.py +++ b/tracer.py @@ -189,10 +189,11 @@ if __name__ == "__main__": ], ) ) - _send(irctokens.format("JOIN", bot.getlist("channels"))) + + _send(irctokens.format("JOIN", [",".join(bot.getlist("channels"))])) elif line.command == "INVITE": - _send(irctokens.format("JOIN", [line.params[0]])) + _send(irctokens.format("JOIN", [line.params[1]])) elif line.command == "PRIVMSG": try: @@ -201,3 +202,4 @@ if __name__ == "__main__": print("ERROR", line) print(e) traceback.print_exc() +