diff options
| author | 2019-04-19 00:39:57 +0100 | |
|---|---|---|
| committer | 2019-04-19 00:39:57 +0100 | |
| commit | 21f0718c4ae18f565895b5cc05c4af3942d0f8e5 (patch) | |
| tree | 3be0d7d346aa7f966dbf2321fc81656876735aea /src/modules/m_samode.cpp | |
| parent | Remove CXX11_OVERRIDE from some non-overrides. (diff) | |
Remove the 'noisy' mode for HasPrivPermission.
This was only used in one place.
Diffstat (limited to 'src/modules/m_samode.cpp')
| -rw-r--r-- | src/modules/m_samode.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 322ee91b8..61d676d6a 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -49,8 +49,11 @@ class CommandSamode : public Command } // Changing the modes of another user requires a special permission - if ((target != user) && (!user->HasPrivPermission("users/samode-usermodes", true))) + if ((target != user) && (!user->HasPrivPermission("users/samode-usermodes"))) + { + user->WriteNotice("*** You are not allowed to /SAMODE other users (the privilege users/samode-usermodes is needed to /SAMODE others)."); return CMD_FAILURE; + } } // XXX: Make ModeParser clear LastParse |
