#include <stdio.h>
#include "users.h"
#include "channels.h"
+#include "helperfuncs.h"
#include "modules.h"
static Server *Srv;
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
*
* - I'm not aware what checking I need, so for now... be supreme evil.
*/
- char* modes[3];
+ const char* modes[3];
modes[0] = parameters[0];
modes[1] = "-v";
modes[2] = user->nick;
};
-extern "C" void * devoice_init( void )
+extern "C" void * init_module( void )
{
return new ModuleDeVoiceFactory;
}