FB2000v1.0909用户合集功能的修改
Add_Combine函数
1、
setbfile(buf,board,fileinfo->filename);
fp1=fopen(buf,"rt");
if(fp1==NULL) {fclose(fp);return;} //防止文本丢失而产生断线
2、
if (fgets(temp2, 256, fp1)!=NULL)
{
e_ptr=strchr(temp2,')'); //此处原来是strchr(temp2,',')
//修改原因:WWW发文或者news发过来的文章没有','
if (e_ptr!=NULL) *e_ptr='\0';
s_ptr=strchr(temp2,'(');
if (s_ptr==NULL) s_ptr=temp2;
else s_ptr++;
fprintf(fp, " ^[[1;36m%s^[[0;1m 提到:\n",s_ptr);
}
3、
if(fgets(temp2,256,fp1)!=NULL)
if(strncmp(temp2,"转信站: ",8)) fputs(temp2,fp);
while (!feof(fp1)) {
4、
if(!yinyan) if((strstr(temp2, "【"))|| + (*temp2==':')) continue;
if (strncmp(temp2,"--\n",3)==0) break;
//防止文章内容中出现"---------",而使制作的合集不完全,要想严格的解决
//这个问题不是很方便
fputs(temp2, fp);
}
--
FROM 61.167.120.130