From 378d071c32c1c7df696658f99ed2de6772a1122f Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 10 Dec 2024 21:35:50 -0800 Subject: [PATCH] Update server.py --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 7901ddf..37181e2 100644 --- a/server.py +++ b/server.py @@ -33,8 +33,8 @@ channels_list = {} # Store channels and their user lists property_list = {"GitServ": {"host": "IRCatCore", "username": "IRCat", "realname": "Codename IRCat Integrated services - Updates bot"}} # Stores properties for active users and channels print("Now listening on port 6667") def pinger(nick, connection): + global property_list 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)