diff options
Diffstat (limited to 'src/modules/m_deaf.cpp')
-rw-r--r-- | src/modules/m_deaf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_deaf.cpp b/src/modules/m_deaf.cpp index 9479b6b1c..2a1449bb4 100644 --- a/src/modules/m_deaf.cpp +++ b/src/modules/m_deaf.cpp @@ -55,7 +55,8 @@ class ModuleDeaf : public Module : Module::Module(Me) { m1 = new User_d(ServerInstance); - ServerInstance->AddMode(m1, 'd'); + if (!ServerInstance->AddMode(m1, 'd')) + throw ModuleException("Could not add new modes!"); } void Implements(char* List) |