summaryrefslogtreecommitdiff
path: root/src/modules/m_nonotice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nonotice.cpp')
-rw-r--r--src/modules/m_nonotice.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_nonotice.cpp b/src/modules/m_nonotice.cpp
index 5ec063e71..71e7e570b 100644
--- a/src/modules/m_nonotice.cpp
+++ b/src/modules/m_nonotice.cpp
@@ -57,7 +57,8 @@ class ModuleNoNotice : public Module
{
nt = new NoNotice(ServerInstance);
- ServerInstance->AddMode(nt, 'T');
+ if (!ServerInstance->AddMode(nt, 'T'))
+ throw ModuleException("Could not add new modes!");
}
void Implements(char* List)