X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/47a037509438b33fc3cc873327b98afe6a042c30..8e2ebdb80add54d46c9f7f058ad469d70ddf9457:/modules/m_xline.c diff --git a/modules/m_xline.c b/modules/m_xline.c index d18dd3c9..fb615ad0 100644 --- a/modules/m_xline.c +++ b/modules/m_xline.c @@ -39,7 +39,7 @@ #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" @@ -321,7 +321,7 @@ apply_xline(struct Client *source_p, const char *name, const char *reason, 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]", @@ -345,7 +345,7 @@ apply_xline(struct Client *source_p, const char *name, const char *reason, get_oper_name(source_p), name, reason); } - dlinkAddAlloc(aconf, &xline_conf_list); + rb_dlinkAddAlloc(aconf, &xline_conf_list); check_xlines(); } @@ -373,7 +373,7 @@ write_xline(struct Client *source_p, struct ConfItem *aconf) 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) {