added MODE_AUDITORIUM (+u) to show only ops the full userlist
[ircu2.10.12-pk.git] / ircd / m_who.c
index 7f5277b44d83ae41a8ac74049d6b435bbb4b64a8..4368c4ea9995a484526dc172d1737d4743032f6b 100644 (file)
@@ -337,6 +337,8 @@ int m_who(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
               continue;
                        if ((acptr != sptr) && IsInvisibleJoin(member)) 
                          continue;
+                       if((acptr != sptr) && (!IsChanOp(member) && !HasVoice(member) && (chptr->mode.mode & MODE_AUDITORIUM)))
+                         continue;
             if (!(isthere || (SEE_USER(sptr, acptr, bitsel))))
               continue;
             if (!Process(acptr))        /* This can't be moved before other checks */