class CommandDevoice : public Command
{
public:
- CommandDevoice (InspIRCd* Instance) : Command(Instance,"DEVOICE", 0, 1)
+ CommandDevoice(Module* Creator) : Command(Creator,"DEVOICE", 1)
{
- this->source = "m_devoice.so";
syntax = "<channel>";
TRANSLATE2(TR_TEXT, TR_END);
}
ServerInstance->SendMode(modes, ServerInstance->FakeClient);
ServerInstance->PI->SendMode(c->name, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate());
- return CMD_LOCALONLY;
+ return CMD_SUCCESS;
}
return CMD_FAILURE;
class ModuleDeVoice : public Module
{
- CommandDevoice *mycommand;
+ CommandDevoice cmd;
public:
- ModuleDeVoice(InspIRCd* Me) : Module(Me)
+ ModuleDeVoice() : cmd(this)
{
-
- mycommand = new CommandDevoice(ServerInstance);
- ServerInstance->AddCommand(mycommand);
-
+ ServerInstance->AddCommand(&cmd);
}
virtual ~ModuleDeVoice()
virtual Version GetVersion()
{
- return Version("$Id$", VF_VENDOR, API_VERSION);
+ return Version("Provides voiced users with the ability to devoice themselves.", VF_VENDOR, API_VERSION);
}
};