Commit 15442b2f authored by rswindell's avatar rswindell

More local logon kruft removal.

parent 9cf24481
......@@ -882,10 +882,6 @@ void sbbs_t::privchat(bool local)
lncntr=0;
CLS;
ansi_save();
#if 0
if(local)
bprintf(text[SysopIsHere],cfg.sys_op);
#endif
ansi_gotoxy(1,13);
remote_y=1;
bprintf(local ? local_sep : sep
......
......@@ -122,18 +122,6 @@ bool sbbs_t::email(int usernumber, const char *top, const char *subj, long mode)
bputs(text[FileAlreadyThere]);
remove(msgpath);
return(false); }
#if 0 /* no such thing as local logon */
if(online==ON_LOCAL) { /* Local upload */
bputs(text[EnterPath]);
if(!getstr(str,60,K_LINE|K_UPPER)) {
bputs(text[Aborted]);
remove(msgpath);
return(false); }
backslash(str);
strcat(str,title);
mv(str,str2,1); }
else
#endif
{ /* Remote */
xfer_prot_menu(XFER_UPLOAD);
mnemonics(text[ProtocolOrQuit]);
......
......@@ -228,19 +228,6 @@ bool sbbs_t::netmail(const char *into, const char *title, long mode)
if(fexistcase(str)) {
bputs(text[FileAlreadyThere]);
return(false); }
#if 0 /* no such thing as local logon */
if(online==ON_LOCAL) { /* Local upload */
bputs(text[EnterPath]);
if(!getstr(str,60,K_LINE|K_UPPER)) {
bputs(text[Aborted]);
return(false);
}
backslash(str);
strcat(str,fname);
if(mv(str,subj,1))
return(false);
} else
#endif
{ /* Remote */
xfer_prot_menu(XFER_UPLOAD);
mnemonics(text[ProtocolOrQuit]);
......
......@@ -1233,26 +1233,6 @@ int sbbs_t::listfileinfo(uint dirnum, char *filespec, long mode)
&& chk_ar(cfg.prot[i]->ar,&useron,&client))
break;
if(i<cfg.total_prots) {
#if 0 /* no such thing as local logon */
if(online==ON_LOCAL) {
bputs(text[EnterPath]);
if(getstr(path,60,K_LINE)) {
backslash(path);
strcat(path,fname);
sprintf(str,"%s%s",dirpath,fname);
if(!mv(str,path,1))
downloadfile(&f);
for(j=0;j<cfg.total_dlevents;j++)
if(!stricmp(cfg.dlevent[j]->ext,f.name+9)
&& chk_ar(cfg.dlevent[j]->ar,&useron)) {
bputs(cfg.dlevent[j]->workstr);
external(cmdstr(cfg.dlevent[j]->cmd,path,nulstr
,NULL)
,EX_OUTL);
CRLF; }
} }
else
#endif
{
delfiles(cfg.temp_dir,ALLFILES);
if(cfg.dir[f.dir]->seqdev) {
......
......@@ -237,24 +237,6 @@ void sbbs_t::readmail(uint usernumber, int which)
sprintf(str3,text[DownloadAttachedFileQ]
,tp,ultoac(length,tmp));
if(length>0L && yesno(str3)) {
#if 0 /* no such thing as local logon */
if(online==ON_LOCAL) {
bputs(text[EnterPath]);
if(getstr(str3,60,K_LINE)) {
backslashcolon(str3);
sprintf(tmp,"%s%s",str3,tp);
if(!mv(str2,tmp,which!=MAIL_YOUR)) {
logon_dlb+=length;
logon_dls++;
useron.dls=(ushort)adjustuserrec(&cfg,useron.number
,U_DLS,5,1);
useron.dlb=adjustuserrec(&cfg,useron.number
,U_DLB,10,length);
bprintf(text[FileNBytesSent]
,fd.name,ultoac(length,tmp)); } } }
else
#endif
{ /* Remote User */
xfer_prot_menu(XFER_DOWNLOAD);
mnemonics(text[ProtocolOrQuit]);
......
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