about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tracer.py6
1 files 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()
+