Skip to content
Snippets Groups Projects
Commit f94d355d authored by rswindell's avatar rswindell
Browse files

Changed AREAS.BBS (MSG) import to generic AREAS.BBS, more generic format of

<something> <AREA-TAG> <more things...>
parent 37f9f8ee
Branches
Tags
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* * * *
* Copyright 2002 Rob Swindell - http://www.synchro.net/copyright.html * * Copyright 2003 Rob Swindell - http://www.synchro.net/copyright.html *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License * * modify it under the terms of the GNU General Public License *
...@@ -54,13 +54,13 @@ char *utos(char *str) ...@@ -54,13 +54,13 @@ char *utos(char *str)
static char out[128]; static char out[128];
int i; int i;
for(i=0;str[i];i++) for(i=0;str[i] && i<sizeof(out)-1;i++)
if(str[i]=='_') if(str[i]=='_')
out[i]=SP; out[i]=' ';
else else
out[i]=str[i]; out[i]=str[i];
out[i]=0; out[i]=0;
return(out); return(out);
} }
char *stou(char *str) char *stou(char *str)
...@@ -532,7 +532,7 @@ export the current message group into. ...@@ -532,7 +532,7 @@ export the current message group into.
ported=0; ported=0;
k=0; k=0;
strcpy(opt[k++],"SUBS.TXT (Synchronet)"); strcpy(opt[k++],"SUBS.TXT (Synchronet)");
strcpy(opt[k++],"AREAS.BBS (MSG)"); strcpy(opt[k++],"AREAS.BBS (Generic)");
strcpy(opt[k++],"AREAS.BBS (SMB)"); strcpy(opt[k++],"AREAS.BBS (SMB)");
strcpy(opt[k++],"AREAS.BBS (SBBSECHO)"); strcpy(opt[k++],"AREAS.BBS (SBBSECHO)");
strcpy(opt[k++],"FIDONET.NA (Fido)"); strcpy(opt[k++],"FIDONET.NA (Fido)");
...@@ -578,24 +578,17 @@ import into the current message group. ...@@ -578,24 +578,17 @@ import into the current message group.
memset(&tmpsub,0,sizeof(sub_t)); memset(&tmpsub,0,sizeof(sub_t));
tmpsub.misc|= tmpsub.misc|=
(SUB_FIDO|SUB_NAME|SUB_TOUSER|SUB_QUOTE|SUB_HYPER); (SUB_FIDO|SUB_NAME|SUB_TOUSER|SUB_QUOTE|SUB_HYPER);
if(k==1) { /* AREAS.BBS *.MSG */ if(k==1) { /* AREAS.BBS Generic/*.MSG */
p=strrchr(str,'\\'); p=str;
if(p==NULL) p=strrchr(str,'/'); while(*p && *p<=' ') p++; // Find path
if(p) *p=0; while(*p && *p>' ') p++; // Skip path
else p=str; while(*p && *p<=' ') p++; // Find tag
//sprintf(tmpsub.echopath,"%.*s",LEN_DIR,str); truncstr(p," \t");
p++; SAFECOPY(tmpsub.code_suffix,p);
sprintf(tmpsub.code_suffix,"%.8s",p); SAFECOPY(tmpsub.sname,utos(p));
while(*p && *p<=SP) p++; SAFECOPY(tmpsub.lname,utos(p));
sprintf(tmpsub.sname,"%.*s",LEN_SSNAME,p); SAFECOPY(tmpsub.qwkname,utos(p));
p=strchr(tmpsub.sname,SP); }
if(p) *p=0;
strcpy(tmpsub.sname,utos(tmpsub.sname));
sprintf(tmpsub.lname,"%.*s",LEN_SLNAME
,tmpsub.sname);
sprintf(tmpsub.qwkname,"%.*s",10
,tmpsub.sname);
}
if(k==2) { /* AREAS.BBS SMB */ if(k==2) { /* AREAS.BBS SMB */
p=strrchr(str,'\\'); p=strrchr(str,'\\');
if(p==NULL) p=strrchr(str,'/'); if(p==NULL) p=strrchr(str,'/');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment