Update server.py
All checks were successful
/ check (push) Successful in 24s

This commit is contained in:
Nova Cat 2025-01-29 19:12:16 -08:00
parent b53a82fd4c
commit c0f2b3b91c

View file

@ -310,7 +310,10 @@ def session(connection, client, ip, isssl=False):
try: try:
if args[0] == data2["webirc_pass"]: if args[0] == data2["webirc_pass"]:
hostname = args[2] hostname = args[2]
client[0] = args[3]
connection.sendall(bytes(f":{server} NOTICE * :*** WebIRC detected, welcome to IRC!\r\n", "UTF-8")) connection.sendall(bytes(f":{server} NOTICE * :*** WebIRC detected, welcome to IRC!\r\n", "UTF-8"))
if hostname != client[0]:
connection.sendall(bytes(f":{server} NOTICE * :*** Got WebIRC hostname! {hostname}\r\n", "UTF-8"))
except: except:
print(traceback.format_exc()) print(traceback.format_exc())
break break