]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_deaf.cpp
Blah
[user/henk/code/inspircd.git] / src / modules / m_deaf.cpp
index 819ba4dcef1be24fdcef82f8e9388a46b7bd77f4..2a1449bb4ed08d18d5643086c05e2ec36b7ceba2 100644 (file)
@@ -2,20 +2,15 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- *                       E-mail:
- *                <brain@chatspike.net>
- *               <Craig@chatspike.net>
- *     
- * Written by Craig Edwards, Craig McLure, and others.
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
  *
  * ---------------------------------------------------
  */
 
-using namespace std;
-
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
@@ -60,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)