diff options
author | Attila Molnar <attilamolnar@hush.com> | 2013-04-27 07:37:07 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-04-27 07:37:07 -0700 |
commit | 0bf71e271b00a2a4c87c0fd5bf04f2d8dad167d3 (patch) | |
tree | 6028698de783821f74471b0a4cd146411517f536 /src/modules | |
parent | 370e899d8a53ecfd3ec3a49a5fbb81212fa154e3 (diff) | |
parent | 8f09226c5cbaad52eec010ed113a1314240c4604 (diff) |
Merge pull request #508 from ShutterQuick/inspircd+samodepatch
Prevent /mode from being incredible näive after failed attempt to samode...
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_samode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string>& 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()); |