]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setname.cpp
This file *BROKEN AGAIN* in windows builds (VC9) - uint_16t and uint_32t do not exist...
[user/henk/code/inspircd.git] / src / modules / m_setname.cpp
index 1e8bceb8a3e27cc2d14584a779df6cb117bcf11a..846edf0fef7fbe0aaa078a10e3fb234243726ce1 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.
@@ -20,7 +20,7 @@
 class CommandSetname : public Command
 {
  public:
-       CommandSetname (InspIRCd* Instance) : Command(Instance,"SETNAME", 0, 1)
+       CommandSetname (InspIRCd* Instance) : Command(Instance,"SETNAME", 0, 1, 1)
        {
                this->source = "m_setname.so";
                syntax = "<new-gecos>";
@@ -43,7 +43,7 @@ class CommandSetname : public Command
 
                if (user->ChangeName(parameters[0].c_str()))
                {
-                       ServerInstance->SNO->WriteToSnoMask('A', "%s used SETNAME to change their GECOS to %s", user->nick.c_str(), parameters[0].c_str());
+                       ServerInstance->SNO->WriteGlobalSno('a', "%s used SETNAME to change their GECOS to %s", user->nick.c_str(), parameters[0].c_str());
                        return CMD_SUCCESS;
                }