Subversion Repositories IRC-Archiver

Rev

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

Rev 19 Rev 20
Line 1... Line 1...
1
/* $Id: bot.c 19 2024-08-30 08:29:36Z nishi $ */
1
/* $Id: bot.c 20 2024-08-30 08:30:21Z nishi $ */
2
 
2
 
3
#include "ia_bot.h"
3
#include "ia_bot.h"
4
 
4
 
5
#include "ia_util.h"
5
#include "ia_util.h"
6
#include "ia_db.h"
6
#include "ia_db.h"
Line 14... Line 14...
14
#include <stdlib.h>
14
#include <stdlib.h>
15
#include <stdio.h>
15
#include <stdio.h>
16
#include <time.h>
16
#include <time.h>
17
#include <string.h>
17
#include <string.h>
18
#include <strings.h>
18
#include <strings.h>
-
 
19
#include <sys/stat.h>
19
#include <unistd.h>
20
#include <unistd.h>
20
 
21
 
21
#include <sys/socket.h>
22
#include <sys/socket.h>
22
#include <netinet/tcp.h>
23
#include <netinet/tcp.h>
23
#include <arpa/inet.h>
24
#include <arpa/inet.h>
Line 41... Line 42...
41
extern char* realname;
42
extern char* realname;
42
extern char* nickname;
43
extern char* nickname;
43
extern char* username;
44
extern char* username;
44
extern char* password;
45
extern char* password;
45
extern char* nickserv;
46
extern char* nickserv;
-
 
47
extern char* webroot;
46
extern char* channels[];
48
extern char* channels[];
47
extern int port;
49
extern int port;
48
 
50
 
49
void ia_close(int sock) { close(sock); }
51
void ia_close(int sock) { close(sock); }
50
 
52