]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/s_gline.c
ServerRunning is not used too
[irc/rqf/shadowircd.git] / src / s_gline.c
index 0764c4014ae561ab0cb46ecf9e28ba3297ecf373..326c6da23fd4ef9555eef2da012451ff6b1181af 100644 (file)
@@ -121,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);
@@ -151,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);
                }
        }