]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_restrictmsg.cpp
Update all wiki links to point to the new wiki. This was done automatically with...
[user/henk/code/inspircd.git] / src / modules / m_restrictmsg.cpp
index fd885cd5814f05e2d08a43d9044b39e9435f86d8..b3ab98e51a2ee1fc5d64e48144138ff7fbcf883b 100644 (file)
@@ -2,8 +2,8 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
 
 class ModuleRestrictMsg : public Module
 {
-       
+
  public:
+
        ModuleRestrictMsg(InspIRCd* Me)
                : Module(Me)
        {
-               
+
                Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice };
                ServerInstance->Modules->Attach(eventlist, this, 2);
        }
@@ -44,7 +44,7 @@ class ModuleRestrictMsg : public Module
                        {
                                return 0;
                        }
-                       user->WriteNumeric(531, "%s %s :You are not permitted to send private messages to this user",user->nick,u->nick);
+                       user->WriteNumeric(ERR_CANTSENDTOUSER, "%s %s :You are not permitted to send private messages to this user",user->nick.c_str(),u->nick.c_str());
                        return 1;
                }
 
@@ -60,10 +60,10 @@ class ModuleRestrictMsg : public Module
        virtual ~ModuleRestrictMsg()
        {
        }
-       
+
        virtual Version GetVersion()
        {
-               return Version(1,2,0,1,VF_VENDOR,API_VERSION);
+               return Version("$Id$",VF_VENDOR,API_VERSION);
        }
 };