From: Nishi Date: Wed, 11 Sep 2024 00:32:13 +0000 (+0000) Subject: can post in news now X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=32122a996c2de96c4486636f320cb0c6554449a1;p=okuu.git can post in news now git-svn-id: file:///raid/svn-personal/okuu/trunk@6 7d206d2a-66c2-044b-96de-ba755a9b3ba8 --- diff --git a/Bot/bot.c b/Bot/bot.c index dda09c3..550bc0e 100644 --- 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);