Commit 3b2647e5 authored by rswindell's avatar rswindell
Browse files

Converted itoa and ltoa calls to ultoa.

parent e801dc08
......@@ -183,8 +183,8 @@ void sbbs_t::bulkmail(uchar *ar)
errormsg(WHERE,ERR_WRITE,smb.file,x);
return; }
putuserrec(&cfg,useron.number,U_EMAILS,5,itoa(useron.emails,tmp,10));
putuserrec(&cfg,useron.number,U_ETODAY,5,itoa(useron.etoday,tmp,10));
putuserrec(&cfg,useron.number,U_EMAILS,5,ultoa(useron.emails,tmp,10));
putuserrec(&cfg,useron.number,U_ETODAY,5,ultoa(useron.etoday,tmp,10));
}
......
......@@ -71,7 +71,7 @@ void sbbs_t::chatsection()
case 'S':
useron.chat^=CHAT_SPLITP;
putuserrec(&cfg,useron.number,U_CHAT,8
,ltoa(useron.chat,str,16));
,ultoa(useron.chat,str,16));
bprintf("\r\nPrivate split-screen chat is now: %s\r\n"
,useron.chat&CHAT_SPLITP ? text[ON]:text[OFF]);
break;
......@@ -79,7 +79,7 @@ void sbbs_t::chatsection()
CRLF;
useron.chat^=CHAT_NOACT;
putuserrec(&cfg,useron.number,U_CHAT,8
,ltoa(useron.chat,str,16));
,ultoa(useron.chat,str,16));
getnodedat(cfg.node_num,&thisnode,1);
thisnode.misc^=NODE_AOFF;
printnodedat(cfg.node_num,&thisnode);
......@@ -90,7 +90,7 @@ void sbbs_t::chatsection()
CRLF;
useron.chat^=CHAT_NOPAGE;
putuserrec(&cfg,useron.number,U_CHAT,8
,ltoa(useron.chat,str,16));
,ultoa(useron.chat,str,16));
getnodedat(cfg.node_num,&thisnode,1);
thisnode.misc^=NODE_POFF;
printnodedat(cfg.node_num,&thisnode);
......@@ -312,7 +312,7 @@ void sbbs_t::chatsection()
,useron.chat&CHAT_ACTION
? text[ON]:text[OFF]);
putuserrec(&cfg,useron.number,U_CHAT,8
,ltoa(useron.chat,str,16));
,ultoa(useron.chat,str,16));
break;
case 'C': /* List of action commands */
CRLF;
......@@ -334,7 +334,7 @@ void sbbs_t::chatsection()
,useron.chat&CHAT_ECHO
? text[ON]:text[OFF]);
putuserrec(&cfg,useron.number,U_CHAT,8
,ltoa(useron.chat,str,16));
,ultoa(useron.chat,str,16));
break;
case 'L': /* list nodes */
CRLF;
......@@ -1410,7 +1410,7 @@ void sbbs_t::guruchat(char *line, char *gurubuf, int gurunum)
break;
case 'L':
if(sys_status&SS_USERON)
strcat(theanswer,itoa(useron.level,tmp,10));
strcat(theanswer,ultoa(useron.level,tmp,10));
else
strcat(theanswer,"0");
break;
......@@ -1476,7 +1476,7 @@ void sbbs_t::guruchat(char *line, char *gurubuf, int gurunum)
break;
case '#':
if(sys_status&SS_USERON)
strcat(theanswer,itoa(getage(&cfg,useron.birth)
strcat(theanswer,ultoa(getage(&cfg,useron.birth)
,tmp,10));
else
strcat(theanswer,"0");
......
......@@ -299,7 +299,7 @@ void sbbs_t::gettimeleft(void)
useron.exempt&=~cfg.expired_exempt;
useron.rest|=cfg.expired_rest;
useron.expire=0; }
putuserrec(&cfg,useron.number,U_LEVEL,2,itoa(useron.level,str,10));
putuserrec(&cfg,useron.number,U_LEVEL,2,ultoa(useron.level,str,10));
putuserrec(&cfg,useron.number,U_FLAGS1,8,ultoa(useron.flags1,str,16));
putuserrec(&cfg,useron.number,U_FLAGS2,8,ultoa(useron.flags2,str,16));
putuserrec(&cfg,useron.number,U_FLAGS3,8,ultoa(useron.flags3,str,16));
......
......@@ -61,7 +61,7 @@ void sbbs_t::putusername(int number, char *name)
return; }
if(length<(((long)number-1)*(LEN_ALIAS+2))) {
sprintf(str,"%*s",LEN_ALIAS,nulstr);
strset(str,ETX);
memset(str,ETX,LEN_ALIAS);
strcat(str,crlf);
lseek(file,0L,SEEK_END);
while(filelength(file)<((long)number*(LEN_ALIAS+2)))
......
......@@ -221,7 +221,7 @@ void sbbs_t::autohangup()
for(c=9,a=0;c>-1 && online && !a;c--) {
checkline();
attr(LIGHTGRAY|HIGH);
bputs(itoa(c,tmp,10));
bputs(ultoa(c,tmp,10));
attr(GREEN);
outchar(']');
while((k=inkey(0))!=0 && online) {
......
......@@ -286,13 +286,13 @@ bool sbbs_t::email(int usernumber, char *top, char *subj, long mode)
if(usernumber==1) {
useron.fbacks++;
logon_fbacks++;
putuserrec(&cfg,useron.number,U_FBACKS,5,itoa(useron.fbacks,tmp,10)); }
putuserrec(&cfg,useron.number,U_FBACKS,5,ultoa(useron.fbacks,tmp,10)); }
else {
useron.emails++;
logon_emails++;
putuserrec(&cfg,useron.number,U_EMAILS,5,itoa(useron.emails,tmp,10)); }
putuserrec(&cfg,useron.number,U_EMAILS,5,ultoa(useron.emails,tmp,10)); }
useron.etoday++;
putuserrec(&cfg,useron.number,U_ETODAY,5,itoa(useron.etoday,tmp,10));
putuserrec(&cfg,useron.number,U_ETODAY,5,ultoa(useron.etoday,tmp,10));
bprintf(text[Emailed],username(&cfg,usernumber,tmp),usernumber);
sprintf(str,"E-mailed %s #%d",username(&cfg,usernumber,tmp),usernumber);
logline("E+",str);
......
......@@ -1203,7 +1203,7 @@ int sbbs_t::exec(csi_t *csi)
return(0);
case CS_SET_USER_LEVEL:
useron.level=*(csi->ip++);
putuserrec(&cfg,useron.number,U_LEVEL,2,itoa(useron.level,tmp,10));
putuserrec(&cfg,useron.number,U_LEVEL,2,ultoa(useron.level,tmp,10));
return(0);
case CS_SET_USER_STRING:
csi->logic=LOGIC_FALSE;
......
......@@ -333,9 +333,9 @@ bool sbbs_t::netmail(char *into, char *title, long mode)
useron.emails++;
logon_emails++;
putuserrec(&cfg,useron.number,U_EMAILS,5,itoa(useron.emails,tmp,10));
putuserrec(&cfg,useron.number,U_EMAILS,5,ultoa(useron.emails,tmp,10));
useron.etoday++;
putuserrec(&cfg,useron.number,U_ETODAY,5,itoa(useron.etoday,tmp,10));
putuserrec(&cfg,useron.number,U_ETODAY,5,ultoa(useron.etoday,tmp,10));
if(!(useron.exempt&FLAG('S')))
subtract_cdt(&cfg,&useron,cfg.netmail_cost);
......@@ -695,9 +695,9 @@ void sbbs_t::qwktonetmail(FILE *rep, char *block, char *into, uchar fromhub)
useron.emails++;
logon_emails++;
putuserrec(&cfg,useron.number,U_EMAILS,5,itoa(useron.emails,tmp,10));
putuserrec(&cfg,useron.number,U_EMAILS,5,ultoa(useron.emails,tmp,10));
useron.etoday++;
putuserrec(&cfg,useron.number,U_ETODAY,5,itoa(useron.etoday,tmp,10));
putuserrec(&cfg,useron.number,U_ETODAY,5,ultoa(useron.etoday,tmp,10));
sprintf(str,"Sent %s NetMail to %s (%s) via QWK"
,qnet ? "QWK":"Internet",name,qnet ? fulladdr : to);
......@@ -851,9 +851,9 @@ void sbbs_t::qwktonetmail(FILE *rep, char *block, char *into, uchar fromhub)
useron.emails++;
logon_emails++;
putuserrec(&cfg,useron.number,U_EMAILS,5,itoa(useron.emails,tmp,10));
putuserrec(&cfg,useron.number,U_EMAILS,5,ultoa(useron.emails,tmp,10));
useron.etoday++;
putuserrec(&cfg,useron.number,U_ETODAY,5,itoa(useron.etoday,tmp,10));
putuserrec(&cfg,useron.number,U_ETODAY,5,ultoa(useron.etoday,tmp,10));
sprintf(str,"Sent NetMail to %s @%s via QWK",hdr.to,faddrtoa(fidoaddr));
logline("EN",str);
......
......@@ -141,7 +141,7 @@ void sbbs_t::openfile(file_t* f)
errormsg(WHERE,ERR_READ,str1,3);
return; }
str2[3]=0;
itoa(atoi(str2)+1,str3,10);
ultoa(atoi(str2)+1,str3,10);
putrec(str2,0,3,str3);
lseek(file,f->datoffset+F_OPENCOUNT,SEEK_SET);
if(write(file,str2,3)!=3) {
......@@ -189,7 +189,7 @@ void sbbs_t::closefile(file_t* f)
str2[3]=0;
ch=atoi(str2);
if(ch) ch--;
itoa(ch,str3,10);
ultoa(ch,str3,10);
putrec(str2,0,3,str3);
lseek(file,f->datoffset+F_OPENCOUNT,SEEK_SET);
if(write(file,str2,3)!=3) {
......
......@@ -125,9 +125,9 @@ BOOL DLLCALL putfiledat(scfg_t* cfg, file_t* f)
putrec(buf,F_DESC+LEN_FDESC,2,crlf);
putrec(buf,F_ULER,LEN_ALIAS+5,f->uler);
putrec(buf,F_ULER+LEN_ALIAS+5,2,crlf);
putrec(buf,F_TIMESDLED,5,itoa(f->timesdled,tmp,10));
putrec(buf,F_TIMESDLED,5,ultoa(f->timesdled,tmp,10));
putrec(buf,F_TIMESDLED+5,2,crlf);
putrec(buf,F_OPENCOUNT,3,itoa(f->opencount,tmp,10));
putrec(buf,F_OPENCOUNT,3,ultoa(f->opencount,tmp,10));
putrec(buf,F_OPENCOUNT+3,2,crlf);
buf[F_MISC]=f->misc+SP;
putrec(buf,F_ALTPATH,2,hexplus(f->altpath,tmp));
......@@ -218,7 +218,7 @@ BOOL DLLCALL addfiledat(scfg_t* cfg, file_t* f)
putrec(fdat,F_ULER+LEN_ALIAS+5,2,crlf);
putrec(fdat,F_TIMESDLED,5,ultoa(f->timesdled,tmp,10));
putrec(fdat,F_TIMESDLED+5,2,crlf);
putrec(fdat,F_OPENCOUNT,3,itoa(f->opencount,tmp,10));
putrec(fdat,F_OPENCOUNT,3,ultoa(f->opencount,tmp,10));
putrec(fdat,F_OPENCOUNT+3,2,crlf);
fdat[F_MISC]=f->misc+SP;
putrec(fdat,F_ALTPATH,2,hexplus(f->altpath,tmp));
......
......@@ -1507,7 +1507,7 @@ static void ctrl_thread(void* arg)
/* Adjust User Total Logons/Logons Today */
adjustuserrec(&scfg,user.number,U_LOGONS,5,1);
putuserrec(&scfg,user.number,U_LTODAY,5,itoa(user.ltoday+1,str,10));
putuserrec(&scfg,user.number,U_LTODAY,5,ultoa(user.ltoday+1,str,10));
continue;
}
......@@ -2846,7 +2846,7 @@ static void ctrl_thread(void* arg)
if(user.number) {
user.tlast=(ushort)(time(NULL)-logintime);
putuserrec(&scfg,user.number,U_LASTON,8,ultoa(time(NULL),str,16));
putuserrec(&scfg,user.number,U_TLAST,5,itoa(user.tlast,str,10));
putuserrec(&scfg,user.number,U_TLAST,5,ultoa(user.tlast,str,10));
adjustuserrec(&scfg,user.number,U_TIMEON,5,user.tlast);
}
......
......@@ -468,7 +468,7 @@ void sbbs_t::printnodedat(uint number, node_t* node)
bputs("performing sysop activities");
break;
default:
bputs(itoa(node->action,tmp,10));
bputs(ultoa(node->action,tmp,10));
break; }
if(!node->connection)
bputs(" locally");
......
......@@ -256,7 +256,7 @@ int sbbs_t::listfiles(uint dirnum, char *filespec, int tofile, long mode)
if(tofile) {
write(tofile,crlf,2);
sprintf(hdr,"%*s",c,nulstr);
strset(hdr,'');
memset(hdr,'',c);
strcat(hdr,crlf);
write(tofile,hdr,strlen(hdr)); }
else {
......@@ -991,17 +991,17 @@ int sbbs_t::listfileinfo(uint dirnum, char *filespec, long mode)
bputs(text[EditCreditValue]);
getstr(str,7,K_NUMBER|K_EDIT|K_AUTODEL);
f.cdt=atol(str);
itoa(f.timesdled,str,10);
ultoa(f.timesdled,str,10);
bputs(text[EditTimesDownloaded]);
getstr(str,5,K_NUMBER|K_EDIT|K_AUTODEL);
f.timesdled=atoi(str);
if(f.opencount) {
itoa(f.opencount,str,10);
ultoa(f.opencount,str,10);
bputs(text[EditOpenCount]);
getstr(str,3,K_NUMBER|K_EDIT|K_AUTODEL);
f.opencount=atoi(str); }
if(cfg.altpaths || f.altpath) {
itoa(f.altpath,str,10);
ultoa(f.altpath,str,10);
bputs(text[EditAltPath]);
getstr(str,3,K_NUMBER|K_EDIT|K_AUTODEL);
f.altpath=atoi(str);
......
......@@ -178,10 +178,10 @@ void sbbs_t::logout()
putuserrec(&cfg,useron.number,U_NS_TIME,8,ultoa(last_ns_time,str,16));
putuserrec(&cfg,useron.number,U_LASTON,8,ultoa(useron.laston,str,16));
putuserrec(&cfg,useron.number,U_TIMEON,5,itoa(useron.timeon,str,10));
putuserrec(&cfg,useron.number,U_TTODAY,5,itoa(useron.ttoday,str,10));
putuserrec(&cfg,useron.number,U_TEXTRA,5,itoa(useron.textra,str,10));
putuserrec(&cfg,useron.number,U_TLAST,5,itoa(useron.tlast,str,10));
putuserrec(&cfg,useron.number,U_TIMEON,5,ultoa(useron.timeon,str,10));
putuserrec(&cfg,useron.number,U_TTODAY,5,ultoa(useron.ttoday,str,10));
putuserrec(&cfg,useron.number,U_TEXTRA,5,ultoa(useron.textra,str,10));
putuserrec(&cfg,useron.number,U_TLAST,5,ultoa(useron.tlast,str,10));
getusrsubs();
getusrdirs();
......
......@@ -276,9 +276,9 @@ bool sbbs_t::inetmail(char *into, char *subj, long mode)
useron.emails++;
logon_emails++;
putuserrec(&cfg,useron.number,U_EMAILS,5,itoa(useron.emails,tmp,10));
putuserrec(&cfg,useron.number,U_EMAILS,5,ultoa(useron.emails,tmp,10));
useron.etoday++;
putuserrec(&cfg,useron.number,U_ETODAY,5,itoa(useron.etoday,tmp,10));
putuserrec(&cfg,useron.number,U_ETODAY,5,ultoa(useron.etoday,tmp,10));
sprintf(str,"Sent Internet Mail to %s (%s)",name,addr);
logline("EN",str);
......@@ -448,9 +448,9 @@ bool sbbs_t::qnetmail(char *into, char *subj, long mode)
useron.emails++;
logon_emails++;
putuserrec(&cfg,useron.number,U_EMAILS,5,itoa(useron.emails,tmp,10));
putuserrec(&cfg,useron.number,U_EMAILS,5,ultoa(useron.emails,tmp,10));
useron.etoday++;
putuserrec(&cfg,useron.number,U_ETODAY,5,itoa(useron.etoday,tmp,10));
putuserrec(&cfg,useron.number,U_ETODAY,5,ultoa(useron.etoday,tmp,10));
sprintf(str,"Sent QWK NetMail to %s (%s)",to,fulladdr);
logline("EN",str);
......
......@@ -328,8 +328,8 @@ bool sbbs_t::postmsg(uint subnum, smbmsg_t *remsg, long wm_mode)
useron.ptoday++;
useron.posts++;
logon_posts++;
putuserrec(&cfg,useron.number,U_POSTS,5,itoa(useron.posts,str,10));
putuserrec(&cfg,useron.number,U_PTODAY,5,itoa(useron.ptoday,str,10));
putuserrec(&cfg,useron.number,U_POSTS,5,ultoa(useron.posts,str,10));
putuserrec(&cfg,useron.number,U_PTODAY,5,ultoa(useron.ptoday,str,10));
bprintf(text[Posted],cfg.grp[cfg.sub[subnum]->grp]->sname
,cfg.sub[subnum]->lname);
sprintf(str,"Posted on %s %s",cfg.grp[cfg.sub[subnum]->grp]->sname,cfg.sub[subnum]->lname);
......
......@@ -513,7 +513,7 @@ bool sbbs_t::inputnstime(time_t *dt)
tm=*tp;
bputs(text[NScanYear]);
itoa(tm.tm_year+1900,str,10);
ultoa(tm.tm_year+1900,str,10);
if(!getstr(str,4,K_EDIT|K_AUTODEL|K_NUMBER|K_NOCRLF) || sys_status&SS_ABORT) {
CRLF;
return(false); }
......@@ -524,7 +524,7 @@ bool sbbs_t::inputnstime(time_t *dt)
tm.tm_year-=1900; /* tm_year is years since 1900 */
bputs(text[NScanMonth]);
itoa(tm.tm_mon+1,str,10);
ultoa(tm.tm_mon+1,str,10);
if(!getstr(str,2,K_EDIT|K_AUTODEL|K_NUMBER|K_NOCRLF) || sys_status&SS_ABORT) {
CRLF;
return(false); }
......@@ -535,7 +535,7 @@ bool sbbs_t::inputnstime(time_t *dt)
tm.tm_mon--; /* tm_mon is zero-based */
bputs(text[NScanDay]);
itoa(tm.tm_mday,str,10);
ultoa(tm.tm_mday,str,10);
if(!getstr(str,2,K_EDIT|K_AUTODEL|K_NUMBER|K_NOCRLF) || sys_status&SS_ABORT) {
CRLF;
return(false); }
......@@ -556,7 +556,7 @@ bool sbbs_t::inputnstime(time_t *dt)
else {
hour=tm.tm_hour;
pm=0; } }
itoa(hour,str,10);
ultoa(hour,str,10);
if(!getstr(str,2,K_EDIT|K_AUTODEL|K_NUMBER|K_NOCRLF) || sys_status&SS_ABORT) {
CRLF;
return(false); }
......@@ -566,7 +566,7 @@ bool sbbs_t::inputnstime(time_t *dt)
return(false); }
bputs(text[NScanMinute]);
itoa(tm.tm_min,str,10);
ultoa(tm.tm_min,str,10);
if(!getstr(str,2,K_EDIT|K_AUTODEL|K_NUMBER|K_NOCRLF) || sys_status&SS_ABORT) {
CRLF;
return(false); }
......
......@@ -213,15 +213,15 @@ bool sbbs_t::unpack_rep(char* repfile)
useron.fbacks++;
logon_fbacks++;
putuserrec(&cfg,useron.number,U_FBACKS,5
,itoa(useron.fbacks,tmp,10)); }
,ultoa(useron.fbacks,tmp,10)); }
else {
useron.emails++;
logon_emails++;
putuserrec(&cfg,useron.number,U_EMAILS,5
,itoa(useron.emails,tmp,10)); }
,ultoa(useron.emails,tmp,10)); }
useron.etoday++;
putuserrec(&cfg,useron.number,U_ETODAY,5
,itoa(useron.etoday,tmp,10));
,ultoa(useron.etoday,tmp,10));
bprintf(text[Emailed],username(&cfg,j,tmp),j);
sprintf(str,"E-mailed %s #%d",username(&cfg,j,tmp),j);
logline("E+",str);
......@@ -388,8 +388,8 @@ bool sbbs_t::unpack_rep(char* repfile)
useron.ptoday++;
useron.posts++;
logon_posts++;
putuserrec(&cfg,useron.number,U_POSTS,5,itoa(useron.posts,str,10));
putuserrec(&cfg,useron.number,U_PTODAY,5,itoa(useron.ptoday,str,10));
putuserrec(&cfg,useron.number,U_POSTS,5,ultoa(useron.posts,str,10));
putuserrec(&cfg,useron.number,U_PTODAY,5,ultoa(useron.ptoday,str,10));
bprintf(text[Posted],cfg.grp[cfg.sub[n]->grp]->sname
,cfg.sub[n]->lname);
sprintf(str,"Posted on %s/%s",cfg.grp[cfg.sub[n]->grp]->sname
......
......@@ -306,28 +306,28 @@ int DLLCALL putuserdat(scfg_t* cfg, user_t* user)
putrec(userdat,U_PWMOD,8,ultoa(user->pwmod,str,16));
putrec(userdat,U_PWMOD+8,2,crlf);
putrec(userdat,U_LOGONS,5,itoa(user->logons,str,10));
putrec(userdat,U_LTODAY,5,itoa(user->ltoday,str,10));
putrec(userdat,U_TIMEON,5,itoa(user->timeon,str,10));
putrec(userdat,U_TEXTRA,5,itoa(user->textra,str,10));
putrec(userdat,U_TTODAY,5,itoa(user->ttoday,str,10));
putrec(userdat,U_TLAST,5,itoa(user->tlast,str,10));
putrec(userdat,U_POSTS,5,itoa(user->posts,str,10));
putrec(userdat,U_EMAILS,5,itoa(user->emails,str,10));
putrec(userdat,U_FBACKS,5,itoa(user->fbacks,str,10));
putrec(userdat,U_ETODAY,5,itoa(user->etoday,str,10));
putrec(userdat,U_PTODAY,5,itoa(user->ptoday,str,10));
putrec(userdat,U_LOGONS,5,ultoa(user->logons,str,10));
putrec(userdat,U_LTODAY,5,ultoa(user->ltoday,str,10));
putrec(userdat,U_TIMEON,5,ultoa(user->timeon,str,10));
putrec(userdat,U_TEXTRA,5,ultoa(user->textra,str,10));
putrec(userdat,U_TTODAY,5,ultoa(user->ttoday,str,10));
putrec(userdat,U_TLAST,5,ultoa(user->tlast,str,10));
putrec(userdat,U_POSTS,5,ultoa(user->posts,str,10));
putrec(userdat,U_EMAILS,5,ultoa(user->emails,str,10));
putrec(userdat,U_FBACKS,5,ultoa(user->fbacks,str,10));
putrec(userdat,U_ETODAY,5,ultoa(user->etoday,str,10));
putrec(userdat,U_PTODAY,5,ultoa(user->ptoday,str,10));
putrec(userdat,U_PTODAY+5,2,crlf);
putrec(userdat,U_ULB,10,ultoa(user->ulb,str,10));
putrec(userdat,U_ULS,5,itoa(user->uls,str,10));
putrec(userdat,U_ULS,5,ultoa(user->uls,str,10));
putrec(userdat,U_DLB,10,ultoa(user->dlb,str,10));
putrec(userdat,U_DLS,5,itoa(user->dls,str,10));
putrec(userdat,U_DLS,5,ultoa(user->dls,str,10));
putrec(userdat,U_CDT,10,ultoa(user->cdt,str,10));
putrec(userdat,U_MIN,10,ultoa(user->min,str,10));
putrec(userdat,U_MIN+10,2,crlf);
putrec(userdat,U_LEVEL,2,itoa(user->level,str,10));
putrec(userdat,U_LEVEL,2,ultoa(user->level,str,10));
putrec(userdat,U_FLAGS1,8,ultoa(user->flags1,str,16));
putrec(userdat,U_TL,2,nulstr); /* unused */
putrec(userdat,U_FLAGS2,8,ultoa(user->flags2,str,16));
......@@ -335,16 +335,16 @@ int DLLCALL putuserdat(scfg_t* cfg, user_t* user)
putrec(userdat,U_REST,8,ultoa(user->rest,str,16));
putrec(userdat,U_REST+8,2,crlf);
putrec(userdat,U_ROWS,2,itoa(user->rows,str,10));
putrec(userdat,U_ROWS,2,ultoa(user->rows,str,10));
userdat[U_SEX]=user->sex;
userdat[U_PROT]=user->prot;
putrec(userdat,U_MISC,8,ultoa(user->misc,str,16));
putrec(userdat,U_LEECH,2,itoa(user->leech,str,16));
putrec(userdat,U_LEECH,2,ultoa(user->leech,str,16));
putrec(userdat,U_CURSUB,8,user->cursub);
putrec(userdat,U_CURDIR,8,user->curdir);
// putrec(userdat,U_CMDSET,2,itoa(user->cmdset,str,16)); /* Unused */
// putrec(userdat,U_CMDSET,2,ultoa(user->cmdset,str,16)); /* Unused */
putrec(userdat,U_CMDSET+2,2,crlf);
putrec(userdat,U_XFER_CMD+LEN_XFER_CMD,2,crlf);
......
......@@ -904,13 +904,13 @@ void sbbs_t::forwardmail(smbmsg_t *msg, int usernumber)
if(usernumber==1) {
useron.fbacks++;
logon_fbacks++;
putuserrec(&cfg,useron.number,U_FBACKS,5,itoa(useron.fbacks,tmp,10)); }
putuserrec(&cfg,useron.number,U_FBACKS,5,ultoa(useron.fbacks,tmp,10)); }
else {
useron.emails++;
logon_emails++;
putuserrec(&cfg,useron.number,U_EMAILS,5,itoa(useron.emails,tmp,10)); }
putuserrec(&cfg,useron.number,U_EMAILS,5,ultoa(useron.emails,tmp,10)); }
useron.etoday++;
putuserrec(&cfg,useron.number,U_ETODAY,5,itoa(useron.etoday,tmp,10));
putuserrec(&cfg,useron.number,U_ETODAY,5,ultoa(useron.etoday,tmp,10));
for(i=1;i<=cfg.sys_nodes;i++) { /* Tell user, if online */
getnodedat(i,&node,0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment