From 21f0718c4ae18f565895b5cc05c4af3942d0f8e5 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 19 Apr 2019 00:39:57 +0100 Subject: Remove the 'noisy' mode for HasPrivPermission. This was only used in one place. --- src/modules/m_sajoin.cpp | 2 +- src/modules/m_samode.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp index f506a2e1c..d01339133 100644 --- a/src/modules/m_sajoin.cpp +++ b/src/modules/m_sajoin.cpp @@ -45,7 +45,7 @@ class CommandSajoin : public Command User* dest = ServerInstance->FindNick(nickname); if ((dest) && (dest->registered == REG_ALL)) { - if (user != dest && !user->HasPrivPermission("users/sajoin-others", false)) + if (user != dest && !user->HasPrivPermission("users/sajoin-others")) { user->WriteNotice("*** You are not allowed to /SAJOIN other users (the privilege users/sajoin-others is needed to /SAJOIN others)."); return CMD_FAILURE; 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 -- cgit v1.2.3