diff --git a/server.py b/server.py index 22b1db3..ec5a36e 100644 --- a/server.py +++ b/server.py @@ -77,8 +77,8 @@ def pinger(nick, connection): property_list[nick]["ping_pending"] = True time.sleep(0.5) connection.sendall(bytes(f"PING {server}\r\n","UTF-8")) - elif property_list[nick]["ping_pending"] and ((time.time() - property_list[nick]["last_ping"]) > 120): - property_list[nick]["cause"] = "Ping timeout: 120 seconds" + elif property_list[nick]["ping_pending"] and ((time.time() - property_list[nick]["last_ping"]) > 255): + property_list[nick]["cause"] = "Ping timeout: 255 seconds" connection.shutdown(socket.SHUT_WR) connection.close() break