Unreal: Add support for Atheme

This commit is contained in:
2021-07-03 11:05:40 +02:00
committed by Val Lorentz
parent 4271d5d986
commit 63f4130ab5
4 changed files with 17 additions and 4 deletions

View File

@ -252,7 +252,10 @@ class BaseServicesController(_BaseController):
c.connect(self.server_controller.hostname, self.server_controller.port)
c.sendLine("NICK chkNS")
c.sendLine("USER chk chk chk chk")
c.getMessages(synchronize=False)
for msg in c.getMessages(synchronize=False):
if msg.command == "PING":
# Hi Unreal
c.sendLine("PONG :" + msg.params[0])
c.getMessages()
timeout = time.time() + 5