aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-12 11:21:29 +0100
committerGravatar jesopo2019-09-12 11:21:29 +0100
commitf3d8ffad2c8dc9444e32f65e3c78373ec6ad0661 (patch)
tree956f62f5ebe9d8163c31bbe4c8b53523971cd251 /src/utils
parentallow Requests to specify a useragent (diff)
signature
INVITE should be [channel_name, target]
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 66b4028c..06a4d15d 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(target: str, channel_name: str) -> IRCLine.ParsedLine:
- return IRCLine.ParsedLine("INVITE", [target, channel_name])
+def invite(channel_name: str, target: str) -> IRCLine.ParsedLine:
+ return IRCLine.ParsedLine("INVITE", [channel_name, target])
def whois(target: str) -> IRCLine.ParsedLine:
return IRCLine.ParsedLine("WHOIS", [target])