diff options
Diffstat (limited to 'src/modules/m_botmode.cpp')
-rw-r--r-- | src/modules/m_botmode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp index 1ff7ff2ca..ab16b3309 100644 --- a/src/modules/m_botmode.cpp +++ b/src/modules/m_botmode.cpp @@ -55,7 +55,7 @@ class ModuleBotMode : public Module { bm = new BotMode(ServerInstance); - if (!ServerInstance->AddMode(bm)) + if (!ServerInstance->Modes->AddMode(bm)) throw ModuleException("Could not add new modes!"); Implementation eventlist[] = { I_OnWhois }; ServerInstance->Modules->Attach(eventlist, this, 1); |