creation time filter like /quote list C<10 does not work properly on
undernet (it stills show all channels)
i found in m_list, is_time is increased on "T", and then again on "C".
then later on if is_time == 2 (switch), set the creationtime filter
param.
but if C is used alone, is_time does *not* equal 2. see if this patch
looks reasonable.
based on ircu2.10.11.05 from CVS. please reply.
beware
diff -ur ircu2.10.orig/ircd/m_list.c ircu2.10/ircd/m_list.c
--- ircu2.10.orig/ircd/m_list.c Fri Jun 6 17:38:19 2003
+++ ircu2.10/ircd/m_list.c Fri Jun 6 20:17:40 2003
@@ -182,16 +182,17 @@
return LPARAM_SUCCESS;
while (1) {
+ is_time = 0;
switch (*param) {
case 'T':
case 't':
- is_time++;
+ is_time = 1;
args->flags |= LISTARG_TOPICLIMITS;
/*FALLTHROUGH*/
case 'C':
case 'c':
- is_time++;
+ is_time = 2;
param++;
if (*param != '<' && *param != '>')
return show_usage(sptr);