X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/8e69bb4e903f428b14e2950cce9be39dc8ddd12c..5d3b05b9b624b745527e84f605c9cb04c6831c78:/src/s_gline.c?ds=sidebyside diff --git a/src/s_gline.c b/src/s_gline.c index c64bfed..326c6da 100644 --- a/src/s_gline.c +++ b/src/s_gline.c @@ -25,7 +25,6 @@ */ #include "stdinc.h" -#include "tools.h" #include "channel.h" #include "client.h" #include "common.h" @@ -34,7 +33,6 @@ #include "ircd.h" #include "hostmask.h" #include "numeric.h" -#include "commio.h" #include "s_conf.h" #include "scache.h" #include "send.h" @@ -42,8 +40,6 @@ #include "s_serv.h" #include "s_gline.h" #include "hash.h" -#include "event.h" -#include "memory.h" rb_dlink_list glines; @@ -125,7 +121,7 @@ expire_glines() kill_ptr = gline_node->data; /* these are in chronological order */ - if(kill_ptr->hold > CurrentTime) + if(kill_ptr->hold > rb_current_time()) break; rb_dlinkDestroy(gline_node, &glines); @@ -155,12 +151,12 @@ expire_pending_glines() glp_ptr = pending_node->data; if(((glp_ptr->last_gline_time + GLINE_PENDING_EXPIRE) <= - CurrentTime) || find_is_glined(glp_ptr->host, glp_ptr->user)) + rb_current_time()) || find_is_glined(glp_ptr->host, glp_ptr->user)) { - MyFree(glp_ptr->reason1); - MyFree(glp_ptr->reason2); - MyFree(glp_ptr); + rb_free(glp_ptr->reason1); + rb_free(glp_ptr->reason2); + rb_free(glp_ptr); rb_dlinkDestroy(pending_node, &pending_glines); } }