diff options
Diffstat (limited to 'src/modules/m_blockcaps.cpp')
-rw-r--r-- | src/modules/m_blockcaps.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index 0d76c9c84..b67c496f4 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -61,7 +61,8 @@ public: { OnRehash(""); bc = new BlockCaps(ServerInstance); - ServerInstance->AddMode(bc, 'P'); + if (!ServerInstance->AddMode(bc, 'P')) + throw ModuleException("Could not add new modes!"); } void Implements(char* List) |