]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_watch.cpp
Works with the m_testclient test program/suite!
[user/henk/code/inspircd.git] / src / modules / m_watch.cpp
index faf0792dc11da72fd2c6c8453ee53d51d635bb2d..c15609a4d07e11fafffa02ce764884aa33060970 100644 (file)
@@ -47,7 +47,7 @@ class cmd_watch : public command_t
                this->source = "m_watch.so";
        }
 
-       void Handle (char **parameters, int pcnt, userrec *user)
+       void Handle (const char** parameters, int pcnt, userrec *user)
        {
                if (!pcnt)
                {
@@ -68,7 +68,7 @@ class cmd_watch : public command_t
                {
                        for (int x = 0; x < pcnt; x++)
                        {
-                               char *nick = parameters[x];
+                               const char *nick = parameters[x];
                                if (!strcasecmp(nick,"C"))
                                {
                                        // watch clear