From c0f2b3b91cefb3f298ac8144f29320fb5c9f8984 Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 29 Jan 2025 19:12:16 -0800 Subject: [PATCH] Update server.py --- server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.py b/server.py index 1470599..49b0228 100644 --- a/server.py +++ b/server.py @@ -310,7 +310,10 @@ def session(connection, client, ip, isssl=False): try: if args[0] == data2["webirc_pass"]: hostname = args[2] + client[0] = args[3] 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: print(traceback.format_exc()) break