X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_devoice.cpp;h=c4387bdaaa6eee9c41996a35383bbb2a70e8c2ec;hb=f5c631ef8641db6455bed23c02e5a39f63f7d6d0;hp=2e590095fcfe1a9a84b68a3863cd34728b114eae;hpb=7d93921aabd9c608821baec8a871aff844dfae49;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp index 2e590095f..c4387bdaa 100644 --- a/src/modules/m_devoice.cpp +++ b/src/modules/m_devoice.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * InspIRCd: (C) 2002-2010 InspIRCd Development Team * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see @@ -41,8 +41,7 @@ class CommandDevoice : public Command modes.push_back("-v"); modes.push_back(user->nick); - ServerInstance->SendMode(modes, ServerInstance->FakeClient); - ServerInstance->PI->SendMode(c->name, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate()); + ServerInstance->SendGlobalMode(modes, ServerInstance->FakeClient); return CMD_SUCCESS; } @@ -54,7 +53,7 @@ class ModuleDeVoice : public Module { CommandDevoice cmd; public: - ModuleDeVoice(InspIRCd* Me) : Module(Me), cmd(this) + ModuleDeVoice() : cmd(this) { ServerInstance->AddCommand(&cmd); } @@ -65,7 +64,7 @@ class ModuleDeVoice : public Module virtual Version GetVersion() { - return Version("Provides voiced users with the ability to devoice themselves.", VF_VENDOR, API_VERSION); + return Version("Provides voiced users with the ability to devoice themselves.", VF_VENDOR); } };