about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2020-03-12 10:00:33 -0400
committerBen Harris <ben@tilde.team>2020-03-12 10:00:33 -0400
commitfa3cdb77b078b9bc9d9ac6ad81ae042c5bba06c7 (patch)
treef180db33266ed75e713e88138ea4dd6022235a4e
parent9aafeb87fd0f0d1d6c16870fd2e6b6368d2ed294 (diff)
fix join and invite
-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()
+