#include "stdinc.h"
-#include "tools.h"
#include "send.h"
#include "channel.h"
#include "client.h"
#include "config.h"
#include "ircd.h"
#include "numeric.h"
-#include "memory.h"
#include "s_conf.h"
#include "s_newconf.h"
#include "s_serv.h"
struct Client *target_p;
struct Client *exist_p;
time_t newts, curts;
+ char note[NICKLEN + 10];
if(!(source_p->flags & FLAGS_SERVICE))
return 0;
newts = atol(parv[3]);
/* timestamp is older than 15mins, ignore it */
- if(newts < (CurrentTime - 900))
- newts = CurrentTime - 900;
+ if(newts < (rb_current_time() - 900))
+ newts = rb_current_time() - 900;
target_p->tsinfo = newts;
del_all_accepts(target_p);
- rb_note(target_p->localClient->F->fd, "Nick: %s", target_p->name);
+ rb_snprintf(note, NICKLEN + 10, "Nick: %s", target_p->name);
+ rb_note(target_p->localClient->F, note);
return 0;
}
add_nd_entry(parv[2]);
nd = irc_dictionary_retrieve(nd_dict, parv[2]);
if (nd != NULL)
- nd->expire = CurrentTime + duration;
+ nd->expire = rb_current_time() + duration;
}
return 0;