From 0c02218d0666397c6ba2b8c0097df83f83d1f50f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 27 Feb 2026 21:13:21 +0000 Subject: Massive rework of how internal service providers work. - ServiceType is dead. All modules use RegisterService now. - Modules can implement UnregisterService which is called from DelService now. - Split the service type prefix into its own field. - Renamed Service::name to Service::service_name. This revealed a few bugs. --- modules/sqloper.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'modules/sqloper.cpp') diff --git a/modules/sqloper.cpp b/modules/sqloper.cpp index 8524009ca..8ebf7d4cd 100644 --- a/modules/sqloper.cpp +++ b/modules/sqloper.cpp @@ -163,7 +163,7 @@ private: public: ModuleSQLOper() : Module(VF_VENDOR, "Allows server operators to be authenticated against an SQL table.") - , SQL(this, "SQL") + , SQL(this, "SQL::Provider") { } @@ -174,11 +174,7 @@ public: const auto& tag = ServerInstance->Config->ConfValue("sqloper"); - std::string dbid = tag->getString("dbid"); - if (dbid.empty()) - SQL.SetProvider("SQL"); - else - SQL.SetProvider("SQL/" + dbid); + SQL.SetProviderName(tag->getString("dbid")); query = tag->getString("query", "SELECT * FROM ircd_opers WHERE active=1;", 1); // Update sqloper list from the database. -- cgit v1.3.1-10-gc9f91