From 8bfd72c416ff620664ff08c6f8375bfaa92623ac Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 28 Jan 2025 21:26:06 -0800 Subject: [PATCH] Update server.py --- server.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index 45fd60e..cd8e01b 100644 --- a/server.py +++ b/server.py @@ -306,9 +306,13 @@ def session(connection, client, ip, isssl=False): elif args[0].upper() == "END": CAPEND = True elif command == "WEBIRC" and not finished: - if args[0] == data["webirc_pass"]: - hostname = args[2] - connection.sendall(bytes(f":{server} NOTICE * :*** WebIRC detected, welcome to IRC!\r\n", "UTF-8")) + try: + if args[0] == data["webirc_pass"]: + 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: cleanup_manual() print(f"User {pending} successfully logged in.")