git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1840
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2007-11-04 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_list.c (param_parse): Reverse comparison direction when
+ converting from minutes to time_t, and which bound is set (so that
+ T<time_t works correctly). Also switch is_time cases so that 'T'
+ and 'C' work as documented. Remove a "break" after a "return".
+
+ (m_list): Remove a "break" after a "return".
+
2007-10-29 Michael Poole <mdpoole@troilus.org>
* ircd/ircd_lexer.l (YY_INPUT): Redefine to use fbgets().
2007-10-29 Michael Poole <mdpoole@troilus.org>
* ircd/ircd_lexer.l (YY_INPUT): Redefine to use fbgets().
if (*param != ',' && *param != ' ' && *param != '\0') /* check syntax */
return show_usage(sptr);
if (*param != ',' && *param != ' ' && *param != '\0') /* check syntax */
return show_usage(sptr);
- if (is_time && val < 80000000) /* Toggle UTC/offset */
- val = TStime() - val * 60;
+ if (is_time && val < 80000000) {
+ /* Convert age to timestamp and reverse direction */
+ val = TStime() - val * 60;
+ dir = (dir == '>') ? '<' : '>';
+ }
switch (is_time) {
case 0: /* number of users on channel */
switch (is_time) {
case 0: /* number of users on channel */
args->min_users = val;
break;
args->min_users = val;
break;
- case 1: /* channel topic */
+ case 1: /* channel creation time */
- args->min_topic_time = val;
- args->max_topic_time = val;
- case 2: /* channel creation time */
+ case 2: /* channel topic */
+ args->max_topic_time = val;
+ args->min_topic_time = val;
return show_usage(sptr);
return LPARAM_CHANNEL;
return show_usage(sptr);
return LPARAM_CHANNEL;
}
if (!*param) /* hit end of string? */
}
if (!*param) /* hit end of string? */
switch (param_parse(sptr, parv[param], &args, parc == 2)) {
case LPARAM_ERROR: /* error encountered, usage already sent, return */
return 0;
switch (param_parse(sptr, parv[param], &args, parc == 2)) {
case LPARAM_ERROR: /* error encountered, usage already sent, return */
return 0;
case LPARAM_CHANNEL: /* show channel instead */
show_channels++;
case LPARAM_CHANNEL: /* show channel instead */
show_channels++;