#include "sys.h"
#include "whowas.h"
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#if defined(USE_POLL) && defined(HAVE_POLL_H)
AddC('U');
#endif
+#ifdef IPV6
+ AddC('6');
+#endif
serveropts[i] = '\0';
{
struct Client *acptr;
struct SLink *link;
+ struct Ban *ban;
struct Channel *chptr;
struct ConfItem *aconf;
const struct ConnectionClass* cltmp;
chm += (strlen(chptr->chname) + sizeof(struct Channel));
for (link = chptr->invites; link; link = link->next)
chi++;
- for (link = chptr->banlist; link; link = link->next)
+ for (ban = chptr->banlist; link; ban = ban->next)
{
chb++;
- chbm += (strlen(link->value.cp) + 1 + sizeof(struct SLink));
+ chbm += strlen(ban->who) + strlen(ban->banstr) + 2 + sizeof(*ban);
}
}