inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit cbb6b376c781024534d4ece31a4b5296894d7390
parent b00451a85cfc5d26bbfbd7bb903071f3bba91c9c
Author: Peter Powell <petpow@saberuk.com>
Date:   Thu,  4 Apr 2019 15:09:23 +0100

Use a consistent naming scheme for operator privileges.

- users/callerid-override is now users/ignore-callerid.
- users/privdeaf-override is now users/ignore-privdeaf.

Diffstat:
Mdocs/conf/helpop.conf.example | 2+-
Mdocs/conf/opers.conf.example | 6+++---
Msrc/modules/m_callerid.cpp | 2+-
Msrc/modules/m_deaf.cpp | 2+-
4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/docs/conf/helpop.conf.example b/docs/conf/helpop.conf.example @@ -1074,7 +1074,7 @@ Note that all /STATS use is broadcast to online IRC operators."> r Allows receipt of local oper commands (requires the operlog module). R Allows receipt of remote oper commands (requires the operlog module). t Allows receipt of attempts to use /STATS (local and remote). - v Allows receipt of oper-override notices (requires the override module). + v Allows receipt of oper override notices (requires the override module). x Allows receipt of local X-line notices (G/Z/Q/K/E/R/SHUN/CBan). X Allows receipt of remote X-line notices (G/Z/Q/K/E/R/SHUN/CBan)."> diff --git a/docs/conf/opers.conf.example b/docs/conf/opers.conf.example @@ -30,13 +30,13 @@ # - channels/ignore-noctcp: allows opers with this priv to send a CTCP to a +C channel. # - channels/ignore-nonicks: allows opers with this priv to change their nick when on a +N channel. # - channels/restricted-create: allows opers with this priv to create channels if the restrictchans module is loaded. + # - users/flood/increased-buffers: allows opers with this priv to send and receive data without worrying about being disconnected for exceeding limits (*NOTE). # - users/flood/no-fakelag: prevents opers from being penalized with fake lag for flooding (*NOTE). # - users/flood/no-throttle: allows opers with this priv to send commands without being throttled (*NOTE). - # - users/flood/increased-buffers: allows opers with this priv to send and receive data without worrying about being disconnected for exceeding limits (*NOTE). - # - users/callerid-override: allows opers with this priv to message people using callerid without being on their callerid list. + # - users/ignore-callerid: allows opers with this priv to message people using callerid without being on their callerid list. # - users/ignore-commonchans: allows opers with this priv to send a message to a +c user without sharing common channels. # - users/ignore-noctcp: allows opers with this priv to send a CTCP to a +T user. - # - users/privdeaf-override: allows opers with this priv to message users with +D set. + # - users/ignore-privdeaf: allows opers with this priv to message users with +D set. # - users/sajoin-others: allows opers with this priv to /SAJOIN users other than themselves. # - servers/use-disabled-commands: allows opers with this priv to use disabled commands. # - servers/use-disabled-modes: allows opers with this priv to use disabled modes. diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp @@ -406,7 +406,7 @@ public: if (!dest->IsModeSet(myumode) || (user == dest)) return MOD_RES_PASSTHRU; - if (user->HasPrivPermission("users/callerid-override")) + if (user->HasPrivPermission("users/ignore-callerid")) return MOD_RES_PASSTHRU; callerid_data* dat = cmd.extInfo.get(dest, true); diff --git a/src/modules/m_deaf.cpp b/src/modules/m_deaf.cpp @@ -131,7 +131,7 @@ class ModuleDeaf : public Module if (!privdeafuline && user->server->IsULine()) return MOD_RES_DENY; - if (!user->HasPrivPermission("users/privdeaf-override")) + if (!user->HasPrivPermission("users/ignore-privdeaf")) return MOD_RES_DENY; }