about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xtracer.py4
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}")