start thread for ping timeout
This commit is contained in:
parent
5d36288bf5
commit
d9f6c605af
1 changed files with 1 additions and 1 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue