]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_showwhois.cpp
Remove some debug (im on a crusade to make debug mode useful, but at the same time...
[user/henk/code/inspircd.git] / src / modules / m_showwhois.cpp
index c4fea4e392b3baa31bf1eba460924317e43f40ba..7dcfebdf627c0dadea88ecc34bf8c81d6ab56ce9 100644 (file)
@@ -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()