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/m_sqloper.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/modules/m_sqloper.cpp') diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp index e7d992dc5..86915af7b 100644 --- a/src/modules/m_sqloper.cpp +++ b/src/modules/m_sqloper.cpp @@ -136,13 +136,12 @@ public: void init() { - OnRehash(NULL); - Implementation eventlist[] = { I_OnRehash, I_OnPreCommand }; - ServerInstance->Modules->Attach(eventlist, this, 2); + Implementation eventlist[] = { I_OnPreCommand }; + ServerInstance->Modules->Attach(eventlist, this, 1); } - void OnRehash(User* user) + void ReadConfig(ConfigReadStatus&) { ConfigTag* tag = ServerInstance->Config->ConfValue("sqloper"); -- cgit v1.3.1-10-gc9f91