]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/listener.c
Reverting some changed related not to moving on libratbox3 but using ratbox3 source!
[irc/rqf/shadowircd.git] / src / listener.c
index 7410f21b496c70cec368b3e4b606ada5fd568b0d..e8647cfd7f73a147b17e31dc49ec7a466890d74e 100644 (file)
@@ -58,7 +58,7 @@ static listener_t *ListenerPollList = NULL;
 static listener_t *
 make_listener(struct irc_sockaddr_storage *addr)
 {
-       listener_t *listener = (listener_t *) MyMalloc(sizeof(listener_t));
+       listener_t *listener = (listener_t *) rb_malloc(sizeof(listener_t));
        s_assert(0 != listener);
 
        listener->name = me.name;
@@ -528,12 +528,12 @@ accept_connection(int pfd, void *data)
                /*
                 * slow down the whining to opers bit
                 */
-               if((last_oper_notice + 20) <= CurrentTime)
+               if((last_oper_notice + 20) <= rb_current_time())
                {
                        sendto_realops_snomask(SNO_GENERAL, L_ALL,
                                             "All connections in use. (%s)",
                                             get_listener_name(listener));
-                       last_oper_notice = CurrentTime;
+                       last_oper_notice = rb_current_time();
                }
 
                write(fd, "ERROR :All connections in use\r\n", 32);