summaryrefslogtreecommitdiff
path: root/src/modules/m_devoice.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-06-14 05:12:44 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-06-14 05:12:44 +0000
commite5cb25bd13326b9e0d1c275638f3f8f4ffba213a (patch)
tree06f57d3d4d0e271ca14eed64fd1df71396ae9a92 /src/modules/m_devoice.cpp
parentabe0f102d7899780200b3d86557316ef71b57dab (diff)
These commands do not need to be VF_COMMON
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11410 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_devoice.cpp')
-rw-r--r--src/modules/m_devoice.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp
index e02870477..940f13c2d 100644
--- a/src/modules/m_devoice.cpp
+++ b/src/modules/m_devoice.cpp
@@ -43,9 +43,8 @@ class CommandDevoice : public Command
modes.push_back(user->nick);
ServerInstance->SendMode(modes, ServerInstance->FakeClient);
-
- /* route it -- SendMode doesn't distribute over the whole network */
- return CMD_SUCCESS;
+ ServerInstance->PI->SendMode(c->name, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate());
+ return CMD_LOCALONLY;
}
return CMD_FAILURE;
@@ -70,7 +69,7 @@ class ModuleDeVoice : public Module
virtual Version GetVersion()
{
- return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION);
+ return Version("$Id$", VF_VENDOR, API_VERSION);
}
};