mirror of
https://github.com/a-bad-dev/irc2bash.git
synced 2026-06-09 08:56:31 +00:00
Fix INVITE command
This commit is contained in:
parent
c1d9da8ef8
commit
72464611a8
1 changed files with 3 additions and 3 deletions
6
main.py
6
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue