Update server.py

This commit is contained in:
Nova Cat 2024-12-09 13:31:27 -08:00
parent a012870de9
commit 96e532f914

View file

@ -72,8 +72,8 @@ def session(connection, client):
if not ready: if not ready:
username = text.split(" ")[1] username = text.split(" ")[1]
ready = True ready = True
elif "CAP LS 302" in text: elif "CAP LS" in text:
connection.sendall(bytes(f":{server} CAP * LS :", "UTF-8")) connection.sendall(bytes(f":{server} CAP * LS :away-notify", "UTF-8"))
elif (ready and already_set) and not finished: elif (ready and already_set) and not finished:
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} 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} 002 {pending} :Your host is {server}[{ip}/6667], running version IRCat-v{__version__}\r\n", "UTF-8"))