]> Nishi Git Mirror - okuu.git/commitdiff
can post in news now
authorNishi <nishi@nishi.boats>
Wed, 11 Sep 2024 00:32:13 +0000 (00:32 +0000)
committerNishi <nishi@nishi.boats>
Wed, 11 Sep 2024 00:32:13 +0000 (00:32 +0000)
git-svn-id: file:///raid/svn-personal/okuu/trunk@6 7d206d2a-66c2-044b-96de-ba755a9b3ba8

Bot/bot.c

index dda09c3a1322a0d243edd6af28102b40c792866f..550bc0e8a290ee99a62ecabb568e3c06fb572a65 100644 (file)
--- a/Bot/bot.c
+++ b/Bot/bot.c
@@ -29,6 +29,7 @@
 
 extern char* nntppath;
 extern char* nntpcount;
+extern char* nntpfrom;
 
 extern char* ircserver;
 extern char* ircchan;
@@ -142,7 +143,7 @@ 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){
+                                               if(ok_news_read(construct) == 0 && 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);