return 0;
}
/* if we have cluster servers, send it to them.. */
- else if(dlink_list_length(&cluster_conf_list) > 0)
+ else if(rb_dlink_list_length(&cluster_conf_list) > 0)
cluster_generic(source_p, "KLINE",
(tkline_time > 0) ? SHARED_TKLINE : SHARED_PKLINE, CAP_KLN,
"%lu %s %s :%s",
if(tkline_time > 0)
{
- ircsnprintf(buffer, sizeof(buffer),
+ rb_snprintf(buffer, sizeof(buffer),
"Temporary K-line %d min. - %s (%s)",
(int) (tkline_time / 60), reason, current_date);
DupString(aconf->passwd, buffer);
}
else
{
- ircsnprintf(buffer, sizeof(buffer), "%s (%s)", reason, current_date);
+ rb_snprintf(buffer, sizeof(buffer), "%s (%s)", reason, current_date);
DupString(aconf->passwd, buffer);
apply_kline(source_p, aconf, reason, oper_reason, current_date);
}
if(tkline_time > 0)
{
- ircsnprintf(buffer, sizeof(buffer),
+ rb_snprintf(buffer, sizeof(buffer),
"Temporary K-line %d min. - %s (%s)",
(int) (tkline_time / 60), reason, current_date);
DupString(aconf->passwd, buffer);
}
else
{
- ircsnprintf(buffer, sizeof(buffer), "%s (%s)", reason, current_date);
+ rb_snprintf(buffer, sizeof(buffer), "%s (%s)", reason, current_date);
DupString(aconf->passwd, buffer);
apply_kline(source_p, aconf, reason, oper_reason, current_date);
}
if(match(parv[3], me.name) == 0)
return 0;
}
- else if(dlink_list_length(&cluster_conf_list) > 0)
+ else if(rb_dlink_list_length(&cluster_conf_list) > 0)
cluster_generic(source_p, "UNKLINE", SHARED_UNKLINE, CAP_UNKLN,
"%s %s", user, host);
host = aconf->host;
user = aconf->user;
- ircsnprintf(temppath, sizeof(temppath),
+ rb_snprintf(temppath, sizeof(temppath),
"%s.tmp", ConfigFileEntry.klinefile);
filename = get_conf_name(KLINE_TYPE);
static int
remove_temp_kline(struct Client *source_p, struct ConfItem *aconf)
{
- dlink_node *ptr;
+ rb_dlink_node *ptr;
int i;
for (i = 0; i < LAST_TEMP_TYPE; i++)
{
- DLINK_FOREACH(ptr, temp_klines[i].head)
+ RB_DLINK_FOREACH(ptr, temp_klines[i].head)
{
if (aconf == ptr->data)
{