Загрузить файлы в «/»
This commit is contained in:
parent
fd99c955a5
commit
f0dbe48442
4
cfg.h
4
cfg.h
@ -10,7 +10,7 @@ char *channels[] = {"#channel"};
|
|||||||
#define FORMAT_TXT "<%s> %s\n"
|
#define FORMAT_TXT "<%s> %s\n"
|
||||||
#define FORMAT_HTML "[%s] %s<br>\n"
|
#define FORMAT_HTML "[%s] %s<br>\n"
|
||||||
#define FORMAT_AWK "%s %s\n"
|
#define FORMAT_AWK "%s %s\n"
|
||||||
#define FORMAT FORMAT_AWK
|
#define FORMAT FORMAT_TXT
|
||||||
|
|
||||||
//File ext
|
//File ext
|
||||||
#define EXT ".awk"
|
#define EXT ".txt"
|
||||||
|
7
main.c
7
main.c
@ -63,16 +63,11 @@ int main(void) {
|
|||||||
die("Cant chdir");
|
die("Cant chdir");
|
||||||
|
|
||||||
//512 - size of raw buffer (max irc)
|
//512 - size of raw buffer (max irc)
|
||||||
IRCC_init(&client, IRCC_MSG_MAX);
|
IRCC_init(&client);
|
||||||
int status = IRCC_connect(&client, HOST, PORT);
|
int status = IRCC_connect(&client, HOST, PORT);
|
||||||
if (status == IRCC_ERROR)
|
if (status == IRCC_ERROR)
|
||||||
die("Conn refused");
|
die("Conn refused");
|
||||||
|
|
||||||
//Socket timeout
|
|
||||||
struct timeval tv = {IRCC_PING_TIMEOUT, IRCC_PING_TIMEOUT};
|
|
||||||
if (setsockopt(client.socket, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0)
|
|
||||||
die("setsockopt");
|
|
||||||
|
|
||||||
//Register
|
//Register
|
||||||
IRCC_register(&client, NICK);
|
IRCC_register(&client, NICK);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user