fix JOIN emit typehint issue (emit.channel may be None)

This commit is contained in:
jesopo 2020-04-02 23:53:47 +01:00
parent b34e4fcc22
commit 99d55de170

View file

@ -76,7 +76,7 @@ class Server(IServer):
if emit.subcommand == "NEW":
await self._cap_new(emit)
elif emit.command == "JOIN":
if emit.self:
if emit.self and not emit.channel is None:
await self.send(build("MODE", [emit.channel.name]))
async def _on_read_line(self, line: Line):