struct ConfItem *aconf;
int tkline_time = 0;
int loc = 1;
- int propagated = ConfigFileEntry.use_propagated_bans;
+ bool propagated = ConfigFileEntry.use_propagated_bans;
if(!IsOperK(source_p))
{
return;
/* Set as local-only. */
- propagated = 0;
+ propagated = false;
}
/* if we have cluster servers, send it to them.. */
else if(!propagated && rb_dlink_list_length(&cluster_conf_list) > 0)
if(ConfigFileEntry.kline_delay)
{
- if(kline_queued == 0)
+ if(!kline_queued)
{
rb_event_addonce("check_klines", check_klines_event, NULL,
ConfigFileEntry.kline_delay);
- kline_queued = 1;
+ kline_queued = true;
}
}
else
if(ConfigFileEntry.kline_delay)
{
- if(kline_queued == 0)
+ if(!kline_queued)
{
rb_event_addonce("check_klines", check_klines_event, NULL,
ConfigFileEntry.kline_delay);
- kline_queued = 1;
+ kline_queued = true;
}
}
else
char splat[] = "*";
char *h = LOCAL_COPY(parv[1]);
struct ConfItem *aconf;
- int propagated = 1;
+ bool propagated = true;
if(!IsOperUnkline(source_p))
{
if(match(parv[3], me.name) == 0)
return;
- propagated = 0;
+ propagated = false;
}
aconf = find_exact_conf_by_address(host, CONF_KILL, user);
static bool valid_xline(struct Client *, const char *, const char *);
static void apply_xline(struct Client *client_p, const char *name,
- const char *reason, int temp_time, int propagated);
+ const char *reason, int temp_time, bool propagated);
static void propagate_xline(struct Client *source_p, const char *target,
int temp_time, const char *name, const char *type, const char *reason);
static void cluster_xline(struct Client *source_p, int temp_time,
const char *name, const char *reason);
static void handle_remote_unxline(struct Client *source_p, const char *name);
static void remove_xline(struct Client *source_p, const char *name,
- int propagated);
+ bool propagated);
struct Message xline_msgtab = {
"XLINE", 0, 0, 0, 0,
const char *target_server = NULL;
int temp_time;
int loc = 1;
- int propagated = ConfigFileEntry.use_propagated_bans;
+ bool propagated = ConfigFileEntry.use_propagated_bans;
if(!IsOperXline(source_p))
{
return;
/* Set as local-only. */
- propagated = 0;
+ propagated = false;
}
else if(!propagated && rb_dlink_list_length(&cluster_conf_list) > 0)
cluster_xline(source_p, temp_time, name, reason);
return;
}
- apply_xline(source_p, name, reason, temp_time, 0);
+ apply_xline(source_p, name, reason, temp_time, false);
}
/* valid_xline()
}
void
-apply_xline(struct Client *source_p, const char *name, const char *reason, int temp_time, int propagated)
+apply_xline(struct Client *source_p, const char *name, const char *reason, int temp_time, bool propagated)
{
struct ConfItem *aconf;
static void
mo_unxline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
- int propagated = 1;
+ bool propagated = true;
if(!IsOperXline(source_p))
{
if(match(parv[3], me.name) == 0)
return;
- propagated = 0;
+ propagated = false;
}
/* cluster{} moved to remove_xline */
source_p->servptr->name, SHARED_UNXLINE))
return;
- remove_xline(source_p, name, 0);
+ remove_xline(source_p, name, false);
}
static void