connect_time is on server.socket, not server

This commit is contained in:
jesopo 2019-05-24 17:36:20 +01:00
parent a3a2c1e5a4
commit 6b41834a35

View file

@ -49,7 +49,7 @@ class Module(ModuleManager.BaseModule):
return {"networks": networks, "channels": channels, "users": users} return {"networks": networks, "channels": channels, "users": users}
def _server_stats(self, server): def _server_stats(self, server):
connected_seconds = time.time()-server.connect_time connected_seconds = time.time()-server.socket.connect_time
return { return {
"hostname": server.connection_params.hostname, "hostname": server.connection_params.hostname,
"port": server.connection_params.port, "port": server.connection_params.port,