summaryrefslogtreecommitdiff
path: root/src/modules/m_botmode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_botmode.cpp')
-rw-r--r--src/modules/m_botmode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp
index 1007fd4d9..9ed7ef2ee 100644
--- a/src/modules/m_botmode.cpp
+++ b/src/modules/m_botmode.cpp
@@ -65,7 +65,8 @@ class ModuleBotMode : public Module
{
bm = new BotMode(ServerInstance);
- ServerInstance->AddMode(bm, 'B');
+ if (!ServerInstance->AddMode(bm, 'B'))
+ throw ModuleException("Could not add new modes!");
}
void Implements(char* List)