#include "client.h"
#include "hash.h"
#include "ircd.h"
+#include "ircd_log.h"
#include "ircd_reply.h"
#include "ircd_string.h"
#include "numeric.h"
#include "numnicks.h"
#include "send.h"
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
#include <string.h>
/*
char *p = 0;
char *name;
- cli_flags(sptr) &= ~FLAGS_TS8;
+ ClrFlag(sptr, FLAG_TS8);
/* check number of arguments */
if (parc < 2 || parv[1][0] == '\0')
assert(!IsZombie(member)); /* Local users should never zombie */
- if (!member_can_send_to_channel(member))
+ if (!member_can_send_to_channel(member, 0))
{
flags |= CHFL_BANNED;
/* Remote clients don't want to see a comment either. */
parts.jb_comment = 0;
}
+ if (IsDelayedJoin(member))
+ flags |= CHFL_DELAYED;
+
joinbuf_join(&parts, chptr, flags); /* part client from channel */
}
char *p = 0;
char *name;
- cli_flags(sptr) &= ~FLAGS_TS8;
+ ClrFlag(sptr, FLAG_TS8);
/* check number of arguments */
if (parc < 2 || parv[1][0] == '\0')
if (IsZombie(member)) /* figure out special flags... */
flags |= CHFL_ZOMBIE;
+ if (IsDelayedJoin(member))
+ flags |= CHFL_DELAYED;
+
/* part user from channel */
joinbuf_join(&parts, chptr, flags);
}