From 66cfadfc4f6054346d385b7c69dfb1fef8ea37c4 Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 8 Jan 2025 22:11:32 -0800 Subject: [PATCH] Update server.py --- server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index e2fa56e..348f388 100644 --- a/server.py +++ b/server.py @@ -105,7 +105,10 @@ for mod in modules: if modules["sql_provider"] == None: print("IRCat needs an SQL provider.") sys.exit(1) -config = modules["sql_provider"].broker() +sqlproviderequires = {} +for i in modules["sql_provider"].__ircat_requires__: + sqlproviderequires[i.replace("-", "_")] = sqlproviderequires +config = modules["sql_provider"].broker(**sqlproviderequires) sockets = {} sockets_ssl = {} # Open the specified non-SSL sockets.