]> jfr.im git - solanum.git/blobdiff - ircd/s_user.c
Rename connect_delay to post_registration_delay. This matches the ircd-ratbox feature...
[solanum.git] / ircd / s_user.c
index daba26ec695e67a4b0b6f7f82c18a98c3ac16c47..06d3b6cb160790b13f10878087c10987b61c79ae 100644 (file)
@@ -386,7 +386,9 @@ register_local_user(struct Client *client_p, struct Client *source_p)
        if(source_p->preClient->auth.cid)
                return -1;
 
-       client_p->localClient->last = rb_current_time();
+       /* Set firsttime here so that post_registration_delay works from registration,
+        * rather than initial connection.  */
+       source_p->localClient->firsttime = client_p->localClient->last = rb_current_time();
 
        /* XXX - fixme. we shouldnt have to build a users buffer twice.. */
        if(!IsGotId(source_p) && (strchr(source_p->username, '[') != NULL))