From 2ed7ec5de15a9414d20f281842cf610f1b418214 Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 29 Jan 2025 20:01:49 -0800 Subject: [PATCH] Update server.py --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index fd60043..772f1d7 100644 --- a/server.py +++ b/server.py @@ -311,7 +311,7 @@ def session(connection, client, ip, isssl=False): try: if args[0] == data2["webirc_pass"]: hostname = args[2] - client[0] = args[3] + client = (args[3], client[1]) 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")) @@ -372,6 +372,7 @@ def session(connection, client, ip, isssl=False): for comd in pendingCommands: command = comd.split(" ")[0].upper() args = comd.split(" ")[1:] + text = comd processedExternally = False for i in commandProviders: cmdrun = i.command(command=command, args=args, nick=pending, ip=client[0], user=property_list[pending], connection=connection)