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_serverbots.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules/m_serverbots.cpp') diff --git a/src/modules/m_serverbots.cpp b/src/modules/m_serverbots.cpp index 4fa18f5d8..b1e5eb596 100644 --- a/src/modules/m_serverbots.cpp +++ b/src/modules/m_serverbots.cpp @@ -210,8 +210,6 @@ class ModuleServerBots : public Module { recursing = false; botID = 0; - OnRehash(NULL); - ServerInstance->Modules->Attach(I_OnRehash, this); ServerInstance->Modules->Attach(I_OnUserMessage, this); } @@ -240,7 +238,7 @@ class ModuleServerBots : public Module recursing = false; } - void OnRehash(User* user) + void ReadConfig(ConfigReadStatus&) { std::map oldbots; oldbots.swap(bots); -- cgit v1.3.1-10-gc9f91