]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setname.cpp
Remote /MAP (that now doesn't confuse clients ;p)
[user/henk/code/inspircd.git] / src / modules / m_setname.cpp
index a139a0174e97161dc3e78852b20a15ae3d83ab7d..8c48be9a53496df6adb4ea2be51037eef1c58223 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -27,7 +27,7 @@ class CommandSetname : public Command
                TRANSLATE2(TR_TEXT, TR_END);
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, User *user)
+       CmdResult Handle (const char* const* parameters, int pcnt, User *user)
        {
                if (!*parameters[0])
                {
@@ -43,7 +43,7 @@ class CommandSetname : public Command
                
                if (user->ChangeName(parameters[0]))
                {
-                       ServerInstance->WriteOpers("%s used SETNAME to change their GECOS to %s", user->nick, parameters[0]);
+                       ServerInstance->SNO->WriteToSnoMask('A', "%s used SETNAME to change their GECOS to %s", user->nick, parameters[0]);
                        return CMD_SUCCESS;
                }
 
@@ -62,6 +62,7 @@ class ModuleSetName : public Module
                
                mycommand = new CommandSetname(ServerInstance);
                ServerInstance->AddCommand(mycommand);
+
        }
        
        virtual ~ModuleSetName()
@@ -70,7 +71,7 @@ class ModuleSetName : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1, 1, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
+               return Version(1, 2, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
        }
        
 };