X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/af81d5a0b09446188fd6f9c292b51519f2c1cedd..90a3c35b295b07ebe3793bf5d3b882c3c1a5dc7c:/src/s_gline.c diff --git a/src/s_gline.c b/src/s_gline.c index 14b784d..8d7027b 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; @@ -76,7 +72,7 @@ find_is_glined(const char *host, const char *user) rb_dlink_node *gline_node; struct ConfItem *kill_ptr; - DLINK_FOREACH(gline_node, glines.head) + RB_DLINK_FOREACH(gline_node, glines.head) { kill_ptr = gline_node->data; if((kill_ptr->user && (!user || match(kill_ptr->user, user))) @@ -120,7 +116,7 @@ expire_glines() rb_dlink_node *next_node; struct ConfItem *kill_ptr; - DLINK_FOREACH_SAFE(gline_node, next_node, glines.head) + RB_DLINK_FOREACH_SAFE(gline_node, next_node, glines.head) { kill_ptr = gline_node->data; @@ -150,7 +146,7 @@ expire_pending_glines() rb_dlink_node *next_node; struct gline_pending *glp_ptr; - DLINK_FOREACH_SAFE(pending_node, next_node, pending_glines.head) + RB_DLINK_FOREACH_SAFE(pending_node, next_node, pending_glines.head) { glp_ptr = pending_node->data; @@ -158,9 +154,9 @@ expire_pending_glines() CurrentTime) || 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); } }