WHO ourselves on 001 to get our realname

This commit is contained in:
jesopo 2020-04-09 11:09:44 +01:00
parent 9f832df2f1
commit 85ee8e95e0

View file

@ -79,6 +79,7 @@ class Server(IServer):
async def _on_read_emit(self, line: Line, emit: Emit): async def _on_read_emit(self, line: Line, emit: Emit):
if emit.command == "001": if emit.command == "001":
await self.send(build("WHO", [self.nickname]))
self.set_throttle(THROTTLE_RATE, THROTTLE_TIME) self.set_throttle(THROTTLE_RATE, THROTTLE_TIME)
elif emit.command == "CAP": elif emit.command == "CAP":