From d9f6c605afed89b83fb15d69b6ba373c1dd0f9a7 Mon Sep 17 00:00:00 2001 From: Nova Cat Date: Mon, 9 Dec 2024 16:45:36 -0800 Subject: [PATCH] start thread for ping timeout --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index ff399cc..8db978d 100644 --- a/server.py +++ b/server.py @@ -96,7 +96,7 @@ def session(connection, client): nickname_list[pending] = connection property_list[pending] = {"host": hostname, "username": username, "realname": realname, "modes": "iw", "last_ping": time.time(), "ping_pending": False} lower_nicks[pending.lower()] = pending - threading.Thread(target=pinger, args=[pending, connection]) + threading.Thread(target=pinger, args=[pending, connection]).start() connection.sendall(bytes(f":{server} 001 {pending} :Welcome to the {displayname} Internet Relay Chat Network {pending}\r\n", "UTF-8")) connection.sendall(bytes(f":{server} 002 {pending} :Your host is {server}[{ip}/6667], running version IRCat-v{__version__}\r\n", "UTF-8")) connection.sendall(bytes(f":{server} 004 {pending} {server} IRCat-{__version__} iow ovmsitnlbkq\r\n", "UTF-8"))