Now builds cleanly. Pass all tests from make check.
{
struct list_head *h = Channel_GetListBans(c);
LogDebug("Adding \"%s\" to \"%s\" ban list", mask, Channel_Name(c));
- return Lists_Add(h, mask, time(NULL), who);
+ return Lists_Add(h, mask, time(NULL), who, false);
}
{
struct list_head *h = Channel_GetListExcepts(c);
LogDebug("Adding \"%s\" to \"%s\" exception list", mask, Channel_Name(c));
- return Lists_Add(h, mask, time(NULL), who);
+ return Lists_Add(h, mask, time(NULL), who, false);
}
Lists_MakeMask(Pattern, mask, sizeof(mask));
return Lists_Add(&My_Classes[Class], mask,
- ValidUntil, Reason);
+ ValidUntil, Reason, false);
}
GLOBAL void
if (remember) {
/* We must remember this invite */
if (!Channel_AddInvite(chan, Client_MaskCloaked(target),
- true))
+ true, Client_ID(from)))
return CONNECTED;
}
}
*/
bool
Lists_Add(struct list_head *h, const char *Mask, time_t ValidUntil,
- const char *Reason, bool OnlyOnce = false)
+ const char *Reason, bool OnlyOnce)
{
struct list_elem *e, *newelem;
const char *mask));
GLOBAL bool Lists_Add PARAMS((struct list_head *h, const char *Mask,
- time_t ValidUntil, const char *Reason, bool OnlyOnce));
+ time_t ValidUntil, const char *Reason,
+ bool OnlyOnce));
GLOBAL void Lists_Del PARAMS((struct list_head *head, const char *Mask));
GLOBAL unsigned long Lists_Count PARAMS((struct list_head *h));