X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/47a037509438b33fc3cc873327b98afe6a042c30..8ee12f0c437eec8aa42af7b350c7e2a3ccafedbc:/modules/m_resv.c diff --git a/modules/m_resv.c b/modules/m_resv.c index d492c985..92e57309 100644 --- a/modules/m_resv.c +++ b/modules/m_resv.c @@ -36,8 +36,7 @@ #include "s_conf.h" #include "s_newconf.h" #include "hash.h" -#include "s_log.h" -#include "sprintf_irc.h" +#include "logger.h" static int mo_resv(struct Client *, struct Client *, int, const char **); static int ms_resv(struct Client *, struct Client *, int, const char **); @@ -230,7 +229,7 @@ parse_resv(struct Client *source_p, const char *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. RESV for [%s] [%s]", @@ -288,7 +287,7 @@ parse_resv(struct Client *source_p, const char *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. RESV for [%s] [%s]", @@ -577,7 +576,7 @@ remove_resv_from_file(struct Client *source_p, const char *name) break; } - strlcpy(buff, buf, sizeof(buff)); + rb_strlcpy(buff, buf, sizeof(buff)); if((p = strchr(buff, '\n')) != NULL) *p = '\0';