]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setname.cpp
Fix namedmodes exposing non-key secret parameters to outsiders.
[user/henk/code/inspircd.git] / src / modules / m_setname.cpp
index ae85fc98dc57b5a8e21f6ca777461da3f65410e4..b0e76f587d9e2673e2e38e795d6dbcf45a09b3b8 100644 (file)
@@ -30,7 +30,7 @@ class CommandSetname : public Command
        CommandSetname(Module* Creator) : Command(Creator,"SETNAME", 1, 1)
        {
                allow_empty_last_param = false;
-               syntax = "<new real name>";
+               syntax = ":<realname>";
        }
 
        CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE
@@ -64,7 +64,7 @@ class ModuleSetName : public Module
 
        void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
        {
-               ConfigTag* tag = ServerInstance->Config->ConfValue("cgiirc");
+               ConfigTag* tag = ServerInstance->Config->ConfValue("setname");
 
                // Whether the module should only be usable by server operators.
                bool operonly = tag->getBool("operonly");