]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setname.cpp
Move Blocking/NonBlocking to socket.cpp and make inline
[user/henk/code/inspircd.git] / src / modules / m_setname.cpp
index 0182fa7cc11fa880f06552eec5aca7c41070d32b..72d255be7ea45654236cb28723d06afbf4563ba2 100644 (file)
@@ -25,7 +25,7 @@ using namespace std;
 
 /* $ModDesc: Provides support for the SETNAME command */
 
-Server *Srv;
+static Server *Srv;
 
 class cmd_setname : public command_t
 {
@@ -33,9 +33,10 @@ class cmd_setname : public command_t
        cmd_setname () : command_t("SETNAME", 0, 1)
        {
                this->source = "m_setname.so";
+               syntax = "<new-gecos>";
        }
 
-       void Handle (char **parameters, int pcnt, userrec *user)
+       void Handle (const char** parameters, int pcnt, userrec *user)
        {
                std::string line = "";
                for (int i = 0; i < pcnt-1; i++)