fix
git-svn-id: file:///raid/svn-personal/okuu/trunk@8 7d206d2a-66c2-044b-96de-ba755a9b3ba8
This commit is contained in:
parent
812c58d2c1
commit
1cdc7a9100
|
@ -143,7 +143,8 @@ void ok_bot(void){
|
|||
}
|
||||
if(count <= atoi(list[i]->d_name)){
|
||||
sprintf(construct, "%s/%s", nntppath, list[i]->d_name);
|
||||
if(ok_news_read(construct) == 0 && strcmp(news_entry.from, nntpfrom) != 0){
|
||||
if(ok_news_read(construct) == 0){
|
||||
if(strcmp(news_entry.from, nntpfrom) != 0){
|
||||
char* tmp = ok_strcat3("PRIVMSG ", ircchan, " :\x03" "07[USENET] ~ ");
|
||||
char* temp = ok_strcat3(tmp, news_entry.from, "\x03 ");
|
||||
free(tmp);
|
||||
|
@ -168,6 +169,7 @@ void ok_bot(void){
|
|||
}
|
||||
}
|
||||
free(temp);
|
||||
}
|
||||
}else{
|
||||
fprintf(stderr, "Could not read %s\n", construct);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user