fix JOIN emit typehint issue (emit.channel may be None)
This commit is contained in:
parent
b34e4fcc22
commit
99d55de170
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class Server(IServer):
|
||||||
if emit.subcommand == "NEW":
|
if emit.subcommand == "NEW":
|
||||||
await self._cap_new(emit)
|
await self._cap_new(emit)
|
||||||
elif emit.command == "JOIN":
|
elif emit.command == "JOIN":
|
||||||
if emit.self:
|
if emit.self and not emit.channel is None:
|
||||||
await self.send(build("MODE", [emit.channel.name]))
|
await self.send(build("MODE", [emit.channel.name]))
|
||||||
|
|
||||||
async def _on_read_line(self, line: Line):
|
async def _on_read_line(self, line: Line):
|
||||||
|
|
Loading…
Reference in a new issue