]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setname.cpp
m_spanningtree SVSNICK needs 3 parameters
[user/henk/code/inspircd.git] / src / modules / m_setname.cpp
index 0d6b1d9f3f55237e506e5c6715545e196935ce3f..32c1d5dc3c55789db3b53734fd47832fa1f3d6ed 100644 (file)
@@ -36,7 +36,7 @@ class CommandSetname : public Command
 
        CmdResult Handle (const std::vector<std::string>& parameters, User *user)
        {
-               if (parameters.size() == 0)
+               if (parameters[0].empty())
                {
                        user->WriteServ("NOTICE %s :*** SETNAME: GECOS must be specified", user->nick.c_str());
                        return CMD_FAILURE;
@@ -50,8 +50,7 @@ class CommandSetname : public Command
 
                if (user->ChangeName(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;
+                       ServerInstance->SNO->WriteGlobalSno('a', "%s used SETNAME to change their GECOS to '%s'", user->nick.c_str(), parameters[0].c_str());
                }
 
                return CMD_SUCCESS;