diff options
-rw-r--r-- | src/modules/m_devoice.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp index 340579466..64604e90c 100644 --- a/src/modules/m_devoice.cpp +++ b/src/modules/m_devoice.cpp @@ -41,19 +41,13 @@ class CommandDevoice : public Command CmdResult Handle (const std::vector<std::string> ¶meters, User *user) { - Channel* c = ServerInstance->FindChan(parameters[0]); - if (c && c->HasUser(user)) - { - std::vector<std::string> modes; - modes.push_back(parameters[0]); - modes.push_back("-v"); - modes.push_back(user->nick); + std::vector<std::string> modes; + modes.push_back(parameters[0]); + modes.push_back("-v"); + modes.push_back(user->nick); - ServerInstance->SendGlobalMode(modes, ServerInstance->FakeClient); - return CMD_SUCCESS; - } - - return CMD_FAILURE; + ServerInstance->SendGlobalMode(modes, ServerInstance->FakeClient); + return CMD_SUCCESS; } }; |