]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/s_user.c
ok, trying to work on blockheap's stuff
[irc/rqf/shadowircd.git] / src / s_user.c
index 8d247fc7a7e9e6eb1355ccf1c5c9dc287a43cbb2..a9537d0554fc6df97582931b89b8a6fc765f3f2c 100644 (file)
@@ -261,7 +261,7 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char
        if(rb_dlink_list_length(&source_p->preClient->dnsbl_queries) > 0)
                return -1;
 
-       client_p->localClient->last = CurrentTime;
+       client_p->localClient->last = rb_current_time();
        /* Straight up the maximum rate of flooding... */
        source_p->localClient->allow_read = MAX_FLOOD_BURST;
 
@@ -1274,7 +1274,7 @@ oper_up(struct Client *source_p, struct oper_conf *oper_p)
        SetExemptKline(source_p);
 
        source_p->flags2 |= oper_p->flags;
-       DupString(source_p->localClient->opername, oper_p->name);
+       source_p->localClient->opername = rb_strdup(oper_p->name);
 
        rb_dlinkAddAlloc(source_p, &local_oper_list);
        rb_dlinkAddAlloc(source_p, &oper_list);