From a4447131713fe0fe0f844eb025e21bb5701eb04b Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 28 Jan 2025 21:27:34 -0800 Subject: [PATCH] Update server.py --- server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index cd8e01b..7338e61 100644 --- a/server.py +++ b/server.py @@ -65,8 +65,9 @@ def getident(hostt:str, clientport:int, ssll:bool): global mods mods = {"sql_provider": None, "command": [], "allsocket": [], "identified": False, "ssl": False} with open(sys.argv[1], 'r') as file: - global data + global data2 data = yaml.safe_load(file) + data2 = data try: server = data["host"] except: print("using fallback server address") try: displayname = data["name"] @@ -307,7 +308,7 @@ def session(connection, client, ip, isssl=False): CAPEND = True elif command == "WEBIRC" and not finished: try: - if args[0] == data["webirc_pass"]: + if args[0] == data2["webirc_pass"]: hostname = args[2] connection.sendall(bytes(f":{server} NOTICE * :*** WebIRC detected, welcome to IRC!\r\n", "UTF-8")) except: