diff options
Diffstat (limited to 'src/modules/m_showwhois.cpp')
-rw-r--r-- | src/modules/m_showwhois.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index c4fea4e39..7dcfebdf6 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -63,7 +63,8 @@ class ModuleShowwhois : public Module { sw = new SeeWhois(ServerInstance); - ServerInstance->AddMode(sw, 'W'); + if (!ServerInstance->AddMode(sw, 'W')) + throw ModuleException("Could not add new modes!"); } ~ModuleShowwhois() |