Update server.py

This commit is contained in:
Nova Cat 2024-12-10 21:35:13 -08:00
parent c60ce953dd
commit 531d08fc14

View file

@ -35,7 +35,7 @@ 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)
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"))