From 72464611a896348635435a1ba7b0d98737ca784c Mon Sep 17 00:00:00 2001 From: Jordyn Date: Sat, 14 Mar 2026 03:52:33 -0500 Subject: [PATCH] Fix INVITE command --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 30a9662..35a0cd0 100755 --- a/main.py +++ b/main.py @@ -201,7 +201,7 @@ class Server(): params.append(trailing) # Extract possible user info from prefix - if command == "PRIVMSG": + if command in ["PRIVMSG", "INVITE"]: message_source = prefix.partition("!")[0] # Technically the target is ourselfs, but I change it to be the other user @@ -273,8 +273,8 @@ class Server(): # Allow users to add bots to channel, but only if it's me if msg["command"] == "INVITE": - if msg.source_user in self.opper_nicknames: - print(f"[RECVTHREAD] Joining channel by opper command from {msg['source_user']}!") + if msg["message_source"] in self.opper_nicknames: + print(f"[RECVTHREAD] Joining channel by opper command from {msg['message_source']}!") self._msg_q.put(f"JOIN {msg['params'][-1]}\r\n".encode()) # This is where we actually run the RCE commands and pipe the output