diff options
author | Ben Harris <ben@tilde.team> | 2019-05-28 14:09:43 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2019-05-28 14:09:43 -0400 |
commit | a9089bf342d966b909024922fcfb512d4dc48db1 (patch) | |
tree | 5b13157cebe1337f0a9c16319bb5022e8083f0c1 /tracer.py | |
parent | 0d3ced567c08f41b26d49efb8ecac069c3306345 (diff) |
join on invite
Diffstat (limited to 'tracer.py')
-rwxr-xr-x | tracer.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tracer.py b/tracer.py index 4462005..5cdb30b 100755 --- a/tracer.py +++ b/tracer.py @@ -160,6 +160,10 @@ if __name__ == "__main__": if "PING" in ircmsg: rawsend(ircmsg.replace("I", "O", 1)) + if "INVITE" in ircmsg: + chan = ircmsg.split(":")[-1] + rawsend(f"JOIN {chan}") + if "001" in ircmsg: for c in channels: rawsend(f"JOIN {c}") |