]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_list.c
burst_TS6(): assume users have a UID
[irc/rqf/shadowircd.git] / modules / m_list.c
index e6aaff4ebbd31c167206cfaf153eaf076e45df38..ab05e405f08d39e5ac3cd50f75745f35526f63dc 100644 (file)
@@ -37,7 +37,7 @@
 #include "channel.h"
 #include "client.h"
 #include "hash.h"
-#include "irc_string.h"
+#include "match.h"
 #include "ircd.h"
 #include "numeric.h"
 #include "s_conf.h"
@@ -324,7 +324,7 @@ static void safelist_channel_named(struct Client *source_p, const char *name)
                return;
        }
 
-       if (ShowChannel(source_p, chptr))
+       if (!SecretChannel(chptr) || IsMember(source_p, chptr))
                sendto_one(source_p, form_str(RPL_LIST), me.name, source_p->name, chptr->chname,
                           rb_dlink_list_length(&chptr->members),
                           chptr->topic == NULL ? "" : chptr->topic);