]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_devoice.cpp
WHEEEEE!!!!!
[user/henk/code/inspircd.git] / src / modules / m_devoice.cpp
index 3ea72de399c1a8e64ee0b0b47f883b77ff431772..b4ba9f117db2374ef982d2da6998b214cb636736 100644 (file)
@@ -26,6 +26,7 @@ using namespace std;
 #include <stdio.h>
 #include "users.h"
 #include "channels.h"
+#include "helperfuncs.h"
 #include "modules.h"
 
 static Server *Srv;
@@ -36,9 +37,10 @@ class cmd_devoice : public command_t
        cmd_devoice () : command_t("DEVOICE", 0, 1)
        {
                this->source = "m_devoice.so";
+               syntax = "<channel>";
        }
 
-       void Handle (char **parameters, int pcnt, userrec *user)
+       void Handle (const char** parameters, int pcnt, userrec *user)
        {
                /*
                 * NOTE: DO NOT CODE LIKE THIS!!! This has no checks and can send
@@ -46,12 +48,12 @@ class cmd_devoice : public command_t
                 *
                 * - I'm not aware what checking I need, so for now... be supreme evil.
                 */
-                char* modes[3];
-                modes[0] = parameters[0];
-                modes[1] = "-v";
-                modes[2] = user->nick;
+               const char* modes[3];
+               modes[0] = parameters[0];
+               modes[1] = "-v";
+               modes[2] = user->nick;
 
-                Srv->SendMode(modes,3,user);
+               Srv->SendMode(modes,3,user);
        }
 };