#include "channels.h"
#include "modules.h"
-Server *Srv;
+static Server *Srv;
class cmd_devoice : public command_t
{
public:
- cmd_devoice () : command_t("DEVOICE", 'o', 2)
+ cmd_devoice () : command_t("DEVOICE", 0, 1)
{
this->source = "m_devoice.so";
}
- 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];
- 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);
}
};
};
-extern "C" void * init_module( void )
+extern "C" void * module_init( void )
{
return new ModuleDeVoiceFactory;
}