X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_devoice.cpp;h=940f13c2d158825f84b7cc6db562e59237d16099;hb=819147178db00008a215670992d0f532dd57f9e5;hp=ba12d7db977819d2c74d305b7a83e2a5032960d1;hpb=f9ef4ebc9dc4fd46cdafcc76df644b4896251dac;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp index ba12d7db9..940f13c2d 100644 --- a/src/modules/m_devoice.cpp +++ b/src/modules/m_devoice.cpp @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -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(1, 2, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION); + return Version("$Id$", VF_VENDOR, API_VERSION); } };