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_serverbots.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_serverbots.cpp')
| -rw-r--r-- | src/modules/m_serverbots.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<std::string, BotData*> oldbots; oldbots.swap(bots); |
