#include "class.h"
#include "ircd.h"
#include "numeric.h"
-#include "s_log.h"
+#include "logger.h"
#include "s_serv.h"
#include "whowas.h"
#include "irc_string.h"
}
*new = '\0';
- DupString(aconf->name, tmp);
+ aconf->name = rb_strdup(tmp);
}
else
- DupString(aconf->name, name);
+ aconf->name = rb_strdup(name);
- DupString(aconf->passwd, reason);
+ aconf->passwd = rb_strdup(reason);
collapse(aconf->name);
if(temp_time > 0)
{
- aconf->hold = CurrentTime + temp_time;
+ aconf->hold = rb_current_time() + temp_time;
sendto_realops_snomask(SNO_GENERAL, L_ALL,
"%s added temporary %d min. X-Line for [%s] [%s]",
get_oper_name(source_p), name, reason);
}
- dlinkAddAlloc(aconf, &xline_conf_list);
+ rb_dlinkAddAlloc(aconf, &xline_conf_list);
check_xlines();
}
rb_sprintf(buffer, "\"%s\",\"0\",\"%s\",\"%s\",%ld\n",
aconf->name, aconf->passwd,
- get_oper_name(source_p), CurrentTime);
+ get_oper_name(source_p), (long) rb_current_time());
if(fputs(buffer, out) == -1)
{