Subversion Repositories Okuu

Rev

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

Rev 3 Rev 5
Line 1... Line 1...
1
/* $Id: main.c 3 2024-09-10 19:21:48Z nishi $ */
1
/* $Id: main.c 5 2024-09-11 00:26:25Z nishi $ */
2
 
2
 
3
#include "ok_bot.h"
3
#include "ok_bot.h"
4
 
4
 
5
#include "ok_news.h"
5
#include "ok_news.h"
6
 
6
 
Line 10... Line 10...
10
 
10
 
11
char* nntpserver;
11
char* nntpserver;
12
char* nntpuser;
12
char* nntpuser;
13
char* nntppass;
13
char* nntppass;
14
char* nntppath;
14
char* nntppath;
-
 
15
char* nntpgroup;
-
 
16
char* nntpfrom;
15
char* nntpcount;
17
char* nntpcount;
16
int nntpport = 119;
18
int nntpport = 119;
17
 
19
 
18
char* ircserver;
20
char* ircserver;
19
char* ircchan;
21
char* ircchan;
Line 28... Line 30...
28
 
30
 
29
	nntpserver = getenv("NNTPSERVER");
31
	nntpserver = getenv("NNTPSERVER");
30
	nntpuser = getenv("NNTPUSER");
32
	nntpuser = getenv("NNTPUSER");
31
	nntppass = getenv("NNTPPASS");
33
	nntppass = getenv("NNTPPASS");
32
	nntppath = getenv("NNTPPATH");
34
	nntppath = getenv("NNTPPATH");
-
 
35
	nntpgroup = getenv("NNTPGROUP");
33
	nntpcount = getenv("NNTPCOUNT");
36
	nntpcount = getenv("NNTPCOUNT");
-
 
37
	nntpfrom = getenv("NNTPFROM");
34
	ircserver = getenv("IRCSERVER");
38
	ircserver = getenv("IRCSERVER");
35
	ircchan = getenv("IRCCHAN");
39
	ircchan = getenv("IRCCHAN");
36
	ircuser = getenv("IRCUSER");
40
	ircuser = getenv("IRCUSER");
37
	ircnick = getenv("IRCNICK");
41
	ircnick = getenv("IRCNICK");
38
	ircreal = getenv("IRCREAL");
42
	ircreal = getenv("IRCREAL");
Line 54... Line 58...
54
	}
58
	}
55
	if(nntpcount == NULL){
59
	if(nntpcount == NULL){
56
		fprintf(stderr, "Set NNTPCOUNT\n");
60
		fprintf(stderr, "Set NNTPCOUNT\n");
57
		bad = true;
61
		bad = true;
58
	}
62
	}
-
 
63
	if(nntpfrom == NULL){
-
 
64
		fprintf(stderr, "Set NNTPFROM\n");
-
 
65
		bad = true;
-
 
66
	}
-
 
67
	if(nntpgroup == NULL){
-
 
68
		fprintf(stderr, "Set NNTPGROUP\n");
-
 
69
		bad = true;
-
 
70
	}
59
	if(ircserver == NULL){
71
	if(ircserver == NULL){
60
		fprintf(stderr, "Set IRCSERVER\n");
72
		fprintf(stderr, "Set IRCSERVER\n");
61
		bad = true;
73
		bad = true;
62
	}
74
	}
63
	if(ircchan == NULL){
75
	if(ircchan == NULL){