X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_devoice.cpp;h=31952d0028cec4e7bdde0d4889aa12e4d7d6f555;hb=2df56b811b362dbf5a05a0bc7b0eee5ee4d77a40;hp=ac6156b655ef1f1cf7eaab6897940dd953264248;hpb=c2957516bca0fe70622c7668a12ade68576ddab2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp index ac6156b65..31952d002 100644 --- a/src/modules/m_devoice.cpp +++ b/src/modules/m_devoice.cpp @@ -32,17 +32,17 @@ class CommandDevoice : public Command TRANSLATE2(TR_TEXT, TR_END); } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector ¶meters, User *user) { Channel* c = ServerInstance->FindChan(parameters[0]); if (c && c->HasUser(user)) { - const char* modes[3]; - modes[0] = parameters[0]; - modes[1] = "-v"; - modes[2] = user->nick; + std::vector modes; + modes.push_back(parameters[0]); + modes.push_back("-v"); + modes.push_back(user->nick); - ServerInstance->SendMode(modes, 3, ServerInstance->FakeClient); + ServerInstance->SendMode(modes, ServerInstance->FakeClient); /* route it -- SendMode doesn't distribute over the whole network */ return CMD_SUCCESS; @@ -70,7 +70,7 @@ class ModuleDeVoice : public Module virtual Version GetVersion() { - return Version(1, 2, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION); + return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION); } };