]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_part.c
.cvsignore files removed, SVN-Access replaced by Mercurial-Access
[irc/rqf/shadowircd.git] / modules / core / m_part.c
index d31da2f5c6474d0b82933b928342980811f311b7..d7536d767bcf5f6b9391582c8c8ba49b01ac1825 100644 (file)
@@ -25,7 +25,6 @@
  */
 
 #include "stdinc.h"
-#include "tools.h"
 #include "channel.h"
 #include "client.h"
 #include "common.h"
@@ -128,7 +127,7 @@ part_one_client(struct Client *client_p, struct Client *source_p, char *name, ch
        if(reason[0] && (is_chanop(msptr) || !MyConnect(source_p) ||
                         ((can_send(chptr, source_p, msptr) > 0 &&
                           (source_p->localClient->firsttime +
-                           ConfigFileEntry.anti_spam_exit_message_time) < CurrentTime))))
+                           ConfigFileEntry.anti_spam_exit_message_time) < rb_current_time()))))
        {
                sendto_server(client_p, chptr, CAP_TS6, NOCAPS,
                              ":%s PART %s :%s", use_id(source_p), chptr->chname, reason);