aboutsummaryrefslogtreecommitdiff
path: root/src/utils/irc
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-12 11:24:25 +0100
committerGravatar jesopo2019-09-12 11:24:25 +0100
commit9d33354d1690e43933f919f5f7432fd593004317 (patch)
tree70e11cf963a0728e67fa66df163749abb5670ee2 /src/utils/irc
parentRevert "INVITE should be [channel_name, target]" (diff)
signature
translate INVITE from [channel_name, target] to [target, channel_name]
Diffstat (limited to 'src/utils/irc')
-rw-r--r--src/utils/irc/protocol.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/irc/protocol.py b/src/utils/irc/protocol.py
index 66b4028c..ab2f7b5e 100644
--- a/src/utils/irc/protocol.py
+++ b/src/utils/irc/protocol.py
@@ -61,7 +61,7 @@ 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:
+def invite(channel_name: str, target: str) -> IRCLine.ParsedLine:
return IRCLine.ParsedLine("INVITE", [target, channel_name])
def whois(target: str) -> IRCLine.ParsedLine: