]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chgname.cpp
Some more text fixes and improvements (#1618).
[user/henk/code/inspircd.git] / src / modules / m_chgname.cpp
index d0a4d6fdc5acfda09c080e19820b44d79152c7ef..bcbf22a14f3926fb5465e4cb18c336599b2faa9e 100644 (file)
@@ -29,7 +29,7 @@ class CommandChgname : public Command
        {
                allow_empty_last_param = false;
                flags_needed = 'o';
-               syntax = "<nick> <newname>";
+               syntax = "<nick> :<realname>";
                TRANSLATE2(TR_NICK, TR_TEXT);
        }
 
@@ -57,8 +57,8 @@ class CommandChgname : public Command
 
                if (IS_LOCAL(dest))
                {
-                       dest->ChangeName(parameters[1]);
-                       ServerInstance->SNO->WriteGlobalSno('a', "%s used CHGNAME to change %s's real name to '%s'", user->nick.c_str(), dest->nick.c_str(), dest->fullname.c_str());
+                       dest->ChangeRealName(parameters[1]);
+                       ServerInstance->SNO->WriteGlobalSno('a', "%s used CHGNAME to change %s's real name to '%s'", user->nick.c_str(), dest->nick.c_str(), dest->GetRealName().c_str());
                }
 
                return CMD_SUCCESS;
@@ -81,7 +81,7 @@ public:
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Provides support for the CHGNAME command", VF_OPTCOMMON | VF_VENDOR);
+               return Version("Provides the CHGNAME command", VF_OPTCOMMON | VF_VENDOR);
        }
 };