]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chgname.cpp
Add comments
[user/henk/code/inspircd.git] / src / modules / m_chgname.cpp
index dc90b016b681fcba3974d98ec81d7ee95615fbf3..0a7b5a664eafbb1326adab1b4393b4cf67238b9c 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
@@ -52,7 +52,7 @@ class CommandChgname : public Command
                if (IS_LOCAL(dest))
                {
                        dest->ChangeName(parameters[1]);
-                       ServerInstance->WriteOpers("%s used CHGNAME to change %s's real name to '%s'", user->nick, dest->nick, dest->fullname);
+                       ServerInstance->SNO->WriteToSnoMask('A', "%s used CHGNAME to change %s's real name to '%s'", user->nick, dest->nick, dest->fullname);
                        return CMD_LOCALONLY; /* name change routed by FNAME in spanningtree now */
                }
 
@@ -72,6 +72,7 @@ public:
        {
                mycommand = new CommandChgname(ServerInstance);
                ServerInstance->AddCommand(mycommand);
+
        }
        
        virtual ~ModuleChgName()