send_mode() args is already a list

This commit is contained in:
jesopo 2019-10-29 10:23:47 +00:00
parent 28139cdf68
commit 9f48dfb1f1

View file

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