Implement tracker item #1031606(relating to wildcards in /list).
[ircu2.10.12-pk.git] / ircd / hash.c
index 571a5023da922a46c581922a7f49f0a90081e14b..2b6c3a5c09d68653df26a37059c113664c0a2e6b 100644 (file)
@@ -440,6 +440,10 @@ void list_next_channels(struct Client *cptr)
           && chptr->users < args->max_users
           && chptr->creationtime > args->min_time
           && chptr->creationtime < args->max_time
+          && (!args->wildcard[0] || (args->flags & LISTARG_NEGATEWILDCARD) ||
+              (!match(args->wildcard, chptr->chname)))
+          && (!(args->flags & LISTARG_NEGATEWILDCARD) ||
+              match(args->wildcard, chptr->chname))
           && (!(args->flags & LISTARG_TOPICLIMITS)
               || (chptr->topic[0]
                   && chptr->topic_time > args->min_topic_time