+2004-05-15 beware <steendijk@xs4all.nl>
+
+ [Original ChangeLog date: 2003-10-25 -MDP]
+
+ * ircd/m_whois.c: Fixed /whois comma separated list with wildcards
+ cpu hog bug
+
2004-05-15 Michael Poole <mdpoole@troilus.org>
* ircd/s_conf.c (rehash): Call clear_quarantines on rehash since
if (!cli_user(cptr))
continue;
if (!(HasPriv(cptr, PRIV_LIST_CHAN) && IsAnOper(cptr)) &&
- SecretChannel(chptr) && !find_channel_member(cptr, chptr)))
+ SecretChannel(chptr) && !find_channel_member(cptr, chptr))
continue;
if (chptr->users > args->min_users && chptr->users < args->max_users &&
chptr->creationtime > args->min_time &&
args->flags |= LISTARG_SHOWSECRET;
param++;
- if (*param != ',' && *param != ' ' && *param !+ '\0') /* check syntax */
+ if (*param != ',' && *param != ' ' && *param != '\0') /* check syntax */
return show_usage(sptr);
break;
char* p = 0;
int found = 0;
int total = 0;
+ int wildscount = 0;
if (parc < 2)
{
}
}
else /* wilds */
- found=do_wilds(sptr, nick, total, parc);
+ {
+ if (++wildscount > 3) {
+ send_reply(sptr, ERR_QUERYTOOLONG, parv[1]);
+ break;
+ }
+ found=do_wilds(sptr, nick, total, parc);
+ }
if (!found)
send_reply(sptr, ERR_NOSUCHNICK, nick);