]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setname.cpp
Add support for the IRCv3 account-tag specification.
[user/henk/code/inspircd.git] / src / modules / m_setname.cpp
index bc2b0f3d993c2d37542653a4447b6cb73fe31c46..efe7028b77e50da8484e1f29192b2a7a2fd14297 100644 (file)
@@ -29,7 +29,7 @@ class CommandSetname : public Command
        CommandSetname(Module* Creator) : Command(Creator,"SETNAME", 1, 1)
        {
                allow_empty_last_param = false;
-               syntax = "<newname>";
+               syntax = "<new real name>";
        }
 
        CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE
@@ -40,7 +40,7 @@ class CommandSetname : public Command
                        return CMD_FAILURE;
                }
 
-               if (user->ChangeName(parameters[0]))
+               if (user->ChangeRealName(parameters[0]))
                {
                        ServerInstance->SNO->WriteGlobalSno('a', "%s used SETNAME to change their real name to '%s'", user->nick.c_str(), parameters[0].c_str());
                }