]> 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 6ec65437cde956ebd24491c812be249400b1123c..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)
@@ -116,7 +112,7 @@ class ModuleDeaf : public Module
                        chanrec* chan = (chanrec*)dest;
                        if (chan)
                        {
-                               this->OnBuildExemptList(chan, status, exempt_list);
+                               this->OnBuildExemptList(MSG_PRIVMSG, chan, user, status, exempt_list);
                        }
                }
                return 0;