Subversion Repositories Okuu

Rev

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

Rev 7 Rev 9
Line 1... Line 1...
1
/* $Id: news.c 7 2024-09-11 00:40:20Z nishi $ */
1
/* $Id: news.c 9 2024-09-11 00:50:07Z nishi $ */
2
 
2
 
3
#define OK_NEWS_SRC
3
#define OK_NEWS_SRC
4
#include "ok_news.h"
4
#include "ok_news.h"
5
 
5
 
6
#include "ok_util.h"
6
#include "ok_util.h"
Line 301... Line 301...
301
				send(nt_sock, construct, strlen(construct), 0);
301
				send(nt_sock, construct, strlen(construct), 0);
302
				sprintf(construct, "Newsgroups: %s\r\n", nntpgroup);
302
				sprintf(construct, "Newsgroups: %s\r\n", nntpgroup);
303
				send(nt_sock, construct, strlen(construct), 0);
303
				send(nt_sock, construct, strlen(construct), 0);
304
				sprintf(construct, "Subject: [IRC] Message from %s\r\n", nick);
304
				sprintf(construct, "Subject: [IRC] Message from %s\r\n", nick);
305
				send(nt_sock, construct, strlen(construct), 0);
305
				send(nt_sock, construct, strlen(construct), 0);
-
 
306
				sprintf(construct, "Content-Type: text/plain; charset=UTF-8\r\n", nick);
-
 
307
				send(nt_sock, construct, strlen(construct), 0);
306
				send(nt_sock, "\r\n", 2, 0);
308
				send(nt_sock, "\r\n", 2, 0);
307
				char c;
309
				char c;
308
				int i;
310
				int i;
309
				bool first = true;
311
				bool first = true;
310
				for(i = 0; message[i] != 0; i++){
312
				for(i = 0; message[i] != 0; i++){