Subversion Repositories Okuu

Rev

Rev 5 | Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 6
Line 1... Line 1...
1
/* $Id: bot.c 5 2024-09-11 00:26:25Z nishi $ */
1
/* $Id: bot.c 6 2024-09-11 00:32:13Z nishi $ */
2
 
2
 
3
#include "ok_bot.h"
3
#include "ok_bot.h"
4
 
4
 
5
#include "ok_util.h"
5
#include "ok_util.h"
6
#include "ok_news.h"
6
#include "ok_news.h"
Line 27... Line 27...
27
 
27
 
28
#define OKUU_VERSION "1.00"
28
#define OKUU_VERSION "1.00"
29
 
29
 
30
extern char* nntppath;
30
extern char* nntppath;
31
extern char* nntpcount;
31
extern char* nntpcount;
-
 
32
extern char* nntpfrom;
32
 
33
 
33
extern char* ircserver;
34
extern char* ircserver;
34
extern char* ircchan;
35
extern char* ircchan;
35
extern char* ircpass;
36
extern char* ircpass;
36
extern char* ircuser;
37
extern char* ircuser;
Line 140... Line 141...
140
						free(list[i]);
141
						free(list[i]);
141
						continue;
142
						continue;
142
					}
143
					}
143
					if(count <= atoi(list[i]->d_name)){
144
					if(count <= atoi(list[i]->d_name)){
144
						sprintf(construct, "%s/%s", nntppath, list[i]->d_name);
145
						sprintf(construct, "%s/%s", nntppath, list[i]->d_name);
145
						if(ok_news_read(construct) == 0){
146
						if(ok_news_read(construct) == 0 && strcmp(news_entry.from, nntpfrom) != 0){
146
							char* tmp = ok_strcat3("PRIVMSG ", ircchan, " :\x03" "07[USENET] ~ ");
147
							char* tmp = ok_strcat3("PRIVMSG ", ircchan, " :\x03" "07[USENET] ~ ");
147
							char* temp = ok_strcat3(tmp, news_entry.from, "\x03 ");
148
							char* temp = ok_strcat3(tmp, news_entry.from, "\x03 ");
148
							free(tmp);
149
							free(tmp);
149
							int j;
150
							int j;
150
							int incr = 0;
151
							int incr = 0;