diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-04 23:57:02 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-04 23:57:02 +0000 |
commit | 8e89fe75f9467969bce1dc6930befc6ef273edf6 (patch) | |
tree | 90cdb604fc2c10f4e1da661943a92c553acb4e31 /src/modules/m_devoice.cpp | |
parent | 5fa533dcf77b71b467b32c86632d0b7004128bf8 (diff) |
converting m_d* done
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9623 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_devoice.cpp')
-rw-r--r-- | src/modules/m_devoice.cpp | 6 |
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> ¶meters, 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; |