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_pgsql.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_pgsql.cpp')
| -rw-r--r-- | src/modules/extra/m_pgsql.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 0ea1e0b6a..7e8b1fe31 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -502,8 +502,8 @@ class ModulePgSQL : public Module { ReadConf(); - Implementation eventlist[] = { I_OnUnloadModule, I_OnRehash }; - ServerInstance->Modules->Attach(eventlist, this, 2); + Implementation eventlist[] = { I_OnUnloadModule }; + ServerInstance->Modules->Attach(eventlist, this, 1); } virtual ~ModulePgSQL() @@ -513,7 +513,7 @@ class ModulePgSQL : public Module ClearAllConnections(); } - virtual void OnRehash(User* user) + void ReadConfig(ConfigReadStatus&) { ReadConf(); } |
