translate INVITE from [channel_name, target] to [target, channel_name]
This commit is contained in:
parent
540c7b8c44
commit
9d33354d16
2 changed files with 3 additions and 3 deletions
|
@ -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, target: str, channel_name: str
|
||||
def send_invite(self, channel_name: str, target: str
|
||||
) -> typing.Optional[IRCLine.SentLine]:
|
||||
return self.send(utils.irc.protocol.invite(target, channel_name))
|
||||
return self.send(utils.irc.protocol.invite(channel_name, target))
|
||||
|
||||
def send_whois(self, target: str) -> typing.Optional[IRCLine.SentLine]:
|
||||
return self.send(utils.irc.protocol.whois(target))
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue