- rup=getreguser();
- rup->status=0;
- rup->ID=++lastuserID;
- strncpy(rup->username,sender->nick,NICKLEN); rup->username[NICKLEN]='\0';
- rup->created=time(NULL);
- rup->lastauth=0;
- rup->lastemailchange=time(NULL);
- rup->flags=QUFLAG_NOTICE;
- rup->languageid=0;
- rup->suspendby=0;
- rup->suspendexp=0;
- rup->password[0]='\0';
- rup->email=getsstring(cargv[0],EMAILLEN);
- rup->localpart=getsstring(local,EMAILLEN);
- rup->domain=mdp;
- addregusertomaildomain(rup, rup->domain);
- rup->info=NULL;
+ free(dupemail);
+
+ aup->helloattempts++;
+
+ rup=csa_createaccount(sender->nick,"", cargv[0]);
+ csa_createrandompw(rup->password, PASSLEN);