+ if (!channel->IsModeSet('u'))
+ return;
+
+ /* Some module hid this from being displayed, dont bother */
+ if (nick.empty())
+ return;
+
+ /* If user is oper and operoverride is on, don't touch the list */
+ if (OperOverride && issuer->HasPrivPermission("channels/auspex"))
+ return;
+
+ if (ShowOps && (issuer != user) && (channel->GetStatus(user) < STATUS_OP))
+ {
+ /* Showops is set, hide all non-ops from the user, except themselves */
+ nick.clear();
+ return;
+ }
+
+ if (!ShowOps && (issuer != user))
+ {
+ /* ShowOps is not set, hide everyone except the user whos requesting NAMES */
+ nick.clear();
+ return;
+ }