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/m_sqloper.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/m_sqloper.cpp')
| -rw-r--r-- | src/modules/m_sqloper.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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"); |
