Revert "INVITE should be [channel_name, target]"

This reverts commit f3d8ffad2c.
This commit is contained in:
jesopo 2019-09-12 11:23:29 +01:00
parent f3d8ffad2c
commit 540c7b8c44
2 changed files with 4 additions and 4 deletions

View file

@ -378,9 +378,9 @@ class Server(IRCObject.Object):
def send_list(self, search_for: str=None
) -> typing.Optional[IRCLine.SentLine]:
return self.send(utils.irc.protocol.list(search_for))
def send_invite(self, channel_name: str, target: str
def send_invite(self, target: str, channel_name: str
) -> typing.Optional[IRCLine.SentLine]:
return self.send(utils.irc.protocol.invite(channel_name, target))
return self.send(utils.irc.protocol.invite(target, channel_name))
def send_whois(self, target: str) -> typing.Optional[IRCLine.SentLine]:
return self.send(utils.irc.protocol.whois(target))

View file

@ -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])