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.