*/
#include "stdinc.h"
-#include "tools.h"
#include "channel.h"
#include "class.h"
#include "client.h"
#include "ircd.h"
#include "hostmask.h"
#include "numeric.h"
-#include "commio.h"
#include "s_conf.h"
#include "s_newconf.h"
#include "s_log.h"
#include "msg.h"
#include "parse.h"
#include "modules.h"
-#include "event.h"
#include "reject.h"
static int mo_kline(struct Client *, struct Client *, int, const char **);
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(kline_queued == 0)
{
- eventAddOnce("check_klines", check_klines_event, NULL,
+ rb_event_addonce("check_klines", check_klines_event, NULL,
ConfigFileEntry.kline_delay);
kline_queued = 1;
}
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(kline_queued == 0)
{
- eventAddOnce("check_klines", check_klines_event, NULL,
+ rb_event_addonce("check_klines", check_klines_event, NULL,
ConfigFileEntry.kline_delay);
kline_queued = 1;
}
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);
ilog(L_KLINE, "UK %s %s %s",
get_oper_name(source_p),
aconf->user, aconf->host);
- dlinkDestroy(ptr, &temp_klines[i]);
+ rb_dlinkDestroy(ptr, &temp_klines[i]);
remove_reject_mask(aconf->user, aconf->host);
delete_one_address_conf(aconf->host, aconf);
return YES;