summaryrefslogtreecommitdiff
path: root/src/modules/m_devoice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_devoice.cpp')
-rw-r--r--src/modules/m_devoice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp
index ac6156b65..75335885e 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<std::string> &parameters, User *user)
{
Channel* c = ServerInstance->FindChan(parameters[0]);
if (c && c->HasUser(user))
{
- const char* modes[3];
+ std::vector<std::string> modes;
modes[0] = parameters[0];
modes[1] = "-v";
modes[2] = 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;