fix join and invite

This commit is contained in:
Ben Harris 2020-03-12 10:00:33 -04:00
parent 9aafeb87fd
commit fa3cdb77b0
1 changed files with 4 additions and 2 deletions

View File

@ -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": elif line.command == "INVITE":
_send(irctokens.format("JOIN", [line.params[0]])) _send(irctokens.format("JOIN", [line.params[1]]))
elif line.command == "PRIVMSG": elif line.command == "PRIVMSG":
try: try:
@ -201,3 +202,4 @@ if __name__ == "__main__":
print("ERROR", line) print("ERROR", line)
print(e) print(e)
traceback.print_exc() traceback.print_exc()