From c60ce953dd6145a70aa4358c5e94e25f83892804 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 10 Dec 2024 21:32:34 -0800 Subject: [PATCH] Update server.py --- server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.py b/server.py index b2dfd0b..7514921 100644 --- a/server.py +++ b/server.py @@ -34,6 +34,8 @@ property_list = {"GitServ": {"host": "IRCatCore", "username": "IRCat", "realname print("Now listening on port 6667") def pinger(nick, connection): while nick in property_list: + global property_list + print(property_list[nick]["ping_pending"] = True) if (time.time() - property_list[nick]["last_ping"]) > 60 and not property_list[nick]["ping_pending"]: print("Sent ping message to " + nick) connection.sendall(bytes(f"PING {server}\r\n","UTF-8"))