]> jfr.im git - solanum.git/commit - include/s_conf.h
Rework oper hiding
authorEd Kellett <redacted>
Sun, 7 Jul 2019 03:57:53 +0000 (04:57 +0100)
committerEd Kellett <redacted>
Thu, 12 Sep 2019 22:14:15 +0000 (23:14 +0100)
commit1123eefcb085802bbad7a04bf0d8b7f082d123d6
treec9b4175e13a042e500d0e70bbd63c8be953ff453
parentf7f1c50494419cff99039bd4cb96ae0730888a4a
Rework oper hiding

As it stands, oper hiding is rather messy and inconsistent. Add
SeesOper(target, source), which is true iff target should appear as an
oper to source. If I haven't missed something, all commands that reveal
oper status now use the same logic.

general::hide_opers_in_whois is a special case, and affects /whois only.

general::hide_opers is introduced, and has the same effect as giving
everyone oper:hidden. All commands that reveal oper status respect both.
include/s_conf.h
include/s_newconf.h
ircd/newconf.c
ircd/s_conf.c
modules/m_etrace.c
modules/m_stats.c
modules/m_trace.c
modules/m_userhost.c
modules/m_who.c
modules/m_whois.c