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

This commit is contained in:
Nova Cat 2025-01-28 21:26:06 -08:00
parent 6c89da16af
commit 8bfd72c416

View file

@ -306,9 +306,13 @@ def session(connection, client, ip, isssl=False):
elif args[0].upper() == "END": elif args[0].upper() == "END":
CAPEND = True CAPEND = True
elif command == "WEBIRC" and not finished: elif command == "WEBIRC" and not finished:
if args[0] == data["webirc_pass"]: try:
hostname = args[2] if args[0] == data["webirc_pass"]:
connection.sendall(bytes(f":{server} NOTICE * :*** WebIRC detected, welcome to IRC!\r\n", "UTF-8")) hostname = args[2]
connection.sendall(bytes(f":{server} NOTICE * :*** WebIRC detected, welcome to IRC!\r\n", "UTF-8"))
except:
print(traceback.format_exc())
break
elif (ready and already_set) and (CAPEND if usesIRCv3 else True) and not finished: elif (ready and already_set) and (CAPEND if usesIRCv3 else True) and not finished:
cleanup_manual() cleanup_manual()
print(f"User {pending} successfully logged in.") print(f"User {pending} successfully logged in.")