]> jfr.im git - irc/atheme/atheme.git/commit
protocol/inspircd: Only set hideoper mode on oper pseudoclients
authorAttila Molnar <redacted>
Fri, 25 Mar 2016 11:26:44 +0000 (12:26 +0100)
committerAaron Jones <redacted>
Fri, 25 Mar 2016 13:55:45 +0000 (13:55 +0000)
commit36f1b1a3712058639cac34a2ef51296eb5dfbcb0
tree673c1e6ad6e852484a39482a77142fb7cb426a71
parent46d78377ea2601b9a981d9453d5ed4b588b419a2
protocol/inspircd: Only set hideoper mode on oper pseudoclients

This fixes an issue when Atheme is used with an InspIRCd network with
the hideoper module loaded. InspIRCd adjusts the number of online
opers shown in reply to LUSERS according to the number of hidden opers
(+H clients). This breaks if non-oper clients have the (otherwise
oper-only) hideoper mode set. (Plus it also does not make much sense
to set the hideoper mode on non-opers.)

This patch changes the protocol module so that the hideoper mode is
only set on pseudoclients which are also opered.

Closes #478
modules/protocol/inspircd.c