From 8f09226c5cbaad52eec010ed113a1314240c4604 Mon Sep 17 00:00:00 2001 From: Daniel Vassdal Date: Sat, 27 Apr 2013 04:46:14 -0700 Subject: Prevent /mode from being incredible näive after failed attempt to samode a user. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/m_samode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 08cdea4af..b91b602a6 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -39,13 +39,13 @@ class CommandSamode : public Command CmdResult Handle (const std::vector& parameters, User *user) { - this->active = true; User* target = ServerInstance->FindNick(parameters[0]); if ((target) && (target != user)) { if (!user->HasPrivPermission("users/samode-usermodes", true)) return CMD_FAILURE; } + this->active = true; ServerInstance->Parser->CallHandler("MODE", parameters, user); if (ServerInstance->Modes->GetLastParse().length()) ServerInstance->SNO->WriteGlobalSno('a', user->nick + " used SAMODE: " +ServerInstance->Modes->GetLastParse()); -- cgit v1.2.3