start thread for ping timeout

This commit is contained in:
Nova Cat 2024-12-09 16:45:36 -08:00
parent 5d36288bf5
commit d9f6c605af

View file

@ -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"))