aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-12 11:23:29 +0100
committerGravatar jesopo2019-09-12 11:23:29 +0100
commit540c7b8c44b4af13ffd1fe97a50a0b8746f96b78 (patch)
tree35b803c257bfa76323bdf0a0b0c6ce2abb5944c3 /src/utils
parentINVITE should be [channel_name, target] (diff)
signature
Revert "INVITE should be [channel_name, target]"
This reverts commit f3d8ffad2c8dc9444e32f65e3c78373ec6ad0661.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/irc/protocol.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/irc/protocol.py b/src/utils/irc/protocol.py
index 06a4d15d..66b4028c 100644
--- a/src/utils/irc/protocol.py
+++ b/src/utils/irc/protocol.py
@@ -61,8 +61,8 @@ def names(channel_name: str) -> IRCLine.ParsedLine:
return IRCLine.ParsedLine("NAMES", [channel_name])
def list(search_for: str=None) -> IRCLine.ParsedLine:
return IRCLine.ParsedLine("LIST", [search_for] if search_for else [])
-def invite(channel_name: str, target: str) -> IRCLine.ParsedLine:
- return IRCLine.ParsedLine("INVITE", [channel_name, target])
+def invite(target: str, channel_name: str) -> IRCLine.ParsedLine:
+ return IRCLine.ParsedLine("INVITE", [target, channel_name])
def whois(target: str) -> IRCLine.ParsedLine:
return IRCLine.ParsedLine("WHOIS", [target])