diff options
| author | 2026-02-27 21:13:21 +0000 | |
|---|---|---|
| committer | 2026-03-02 19:01:01 +0000 | |
| commit | 0c02218d0666397c6ba2b8c0097df83f83d1f50f (patch) | |
| tree | fc102c2ebbfffadb985404478605e569da9d92b4 /modules/sqloper.cpp | |
| parent | Add irc::less and convert irc::insensitive_swo to use it. (diff) | |
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.
Diffstat (limited to 'modules/sqloper.cpp')
| -rw-r--r-- | modules/sqloper.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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. |
