From e95a4358c193ddd3e60da28ae55b44986c73c4d0 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sat, 21 Aug 2010 00:48:01 -0400 Subject: 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. --- src/modules/extra/m_pgsql.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/extra/m_pgsql.cpp') 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(); } -- cgit v1.3.1-10-gc9f91