X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/7f4fa1956ee087c272dd260feb6d7e1ef34d641b..121cd4dcb66aee2094cf9e20ebcd798a35274496:/modules/m_resv.c?ds=sidebyside diff --git a/modules/m_resv.c b/modules/m_resv.c index c19d774..92e5730 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 **); @@ -224,13 +223,13 @@ parse_resv(struct Client *source_p, const char *name, aconf = make_conf(); aconf->status = CONF_RESV_CHANNEL; aconf->port = 0; - DupString(aconf->name, name); - DupString(aconf->passwd, reason); + aconf->name = rb_strdup(name); + aconf->passwd = rb_strdup(reason); add_to_resv_hash(aconf->name, aconf); 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]", @@ -282,13 +281,13 @@ parse_resv(struct Client *source_p, const char *name, aconf = make_conf(); aconf->status = CONF_RESV_NICK; aconf->port = 0; - DupString(aconf->name, name); - DupString(aconf->passwd, reason); + aconf->name = rb_strdup(name); + aconf->passwd = rb_strdup(reason); rb_dlinkAddAlloc(aconf, &resv_conf_list); 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';