send_mode() args
is already a list
This commit is contained in:
parent
28139cdf68
commit
9f48dfb1f1
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ class Server(IRCObject.Object):
|
|||
|
||||
def send_mode(self, target: str, mode: str=None, args: typing.List[str]=None
|
||||
) -> typing.Optional[IRCLine.SentLine]:
|
||||
return self.send(self._line("MODE", [target, mode, args]))
|
||||
return self.send(self._line("MODE", [target, mode]+(args or [])))
|
||||
|
||||
def send_topic(self, channel_name: str, topic: str
|
||||
) -> typing.Optional[IRCLine.SentLine]:
|
||||
|
|
Loading…
Reference in a new issue