diff options
| author | 2010-08-21 00:48:01 -0400 | |
|---|---|---|
| committer | 2010-08-21 11:13:59 -0400 | |
| commit | e95a4358c193ddd3e60da28ae55b44986c73c4d0 (patch) | |
| tree | e4b421090688f558011e767789706bf8aa487195 /src/modules/extra/m_sqlite3.cpp | |
| parent | Prevent changing +r when already set (diff) | |
Change config reading hook for better error reporting
This eliminates the OnRehash hook, and replaces it with ReadConfig which
is called on boot, module load, and rehash.
Diffstat (limited to 'src/modules/extra/m_sqlite3.cpp')
| -rw-r--r-- | src/modules/extra/m_sqlite3.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/modules/extra/m_sqlite3.cpp b/src/modules/extra/m_sqlite3.cpp index 3809ac738..5957a043f 100644 --- a/src/modules/extra/m_sqlite3.cpp +++ b/src/modules/extra/m_sqlite3.cpp @@ -203,10 +203,6 @@ class ModuleSQLite3 : public Module void init() { - ReadConf(); - - Implementation eventlist[] = { I_OnRehash }; - ServerInstance->Modules->Attach(eventlist, this, 1); } virtual ~ModuleSQLite3() @@ -225,7 +221,7 @@ class ModuleSQLite3 : public Module conns.clear(); } - void ReadConf() + void ReadConfig(ConfigReadStatus&) { ClearConns(); ConfigTagList tags = ServerInstance->Config->ConfTags("database"); @@ -239,11 +235,6 @@ class ModuleSQLite3 : public Module } } - void OnRehash(User* user) - { - ReadConf(); - } - Version GetVersion() { return Version("sqlite3 provider", VF_VENDOR); |
