query channel MODEs on-JOIN
This commit is contained in:
parent
63fa470a3f
commit
5b4714ca1e
1 changed files with 4 additions and 1 deletions
|
@ -70,9 +70,12 @@ class Server(IServer):
|
||||||
await CAPContext(self).handshake()
|
await CAPContext(self).handshake()
|
||||||
|
|
||||||
async def _on_read_emit(self, line: Line, emit: Emit):
|
async def _on_read_emit(self, line: Line, emit: Emit):
|
||||||
if emit.command == "CAP":
|
if emit.command == "CAP":
|
||||||
if emit.subcommand == "NEW":
|
if emit.subcommand == "NEW":
|
||||||
await self._cap_new(emit)
|
await self._cap_new(emit)
|
||||||
|
elif emit.command == "JOIN":
|
||||||
|
if emit.self:
|
||||||
|
await self.send(build("MODE", [emit.channel.name]))
|
||||||
|
|
||||||
async def _on_read_line(self, line: Line):
|
async def _on_read_line(self, line: Line):
|
||||||
for i, (response, future) in enumerate(self._wait_for):
|
for i, (response, future) in enumerate(self._wait_for):
|
||||||
|
|
Loading…
Reference in a new issue