diff options
author | Daniel Vassdal <daniel@ubuntu.(none)> | 2013-04-27 04:46:14 -0700 |
---|---|---|
committer | Daniel Vassdal <daniel@ubuntu.(none)> | 2013-04-27 04:54:04 -0700 |
commit | 8f09226c5cbaad52eec010ed113a1314240c4604 (patch) | |
tree | 6028698de783821f74471b0a4cd146411517f536 /src | |
parent | f2566ff550bc3516eb35fab76217384866de8bcb (diff) |
Prevent /mode from being incredible näive after failed attempt to samode a user.
Diffstat (limited to 'src')
-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()); |