47 |
#include <sys/stat.h> |
#include <sys/stat.h> |
48 |
#include <time.h> |
#include <time.h> |
49 |
#include <signal.h> |
#include <signal.h> |
50 |
|
#include <gnutls/gnutls.h> |
51 |
|
|
52 |
#ifdef HAVE_ICONV |
#ifdef HAVE_ICONV |
53 |
#include <iconv.h> |
#include <iconv.h> |
71 |
char *weechat_home = NULL; /* WeeChat home dir. (example: /home/toto/.weechat) */ |
char *weechat_home = NULL; /* WeeChat home dir. (example: /home/toto/.weechat) */ |
72 |
FILE *weechat_log_file = NULL; /* WeeChat log file (~/.weechat/weechat.log) */ |
FILE *weechat_log_file = NULL; /* WeeChat log file (~/.weechat/weechat.log) */ |
73 |
|
|
74 |
char *local_charset = NULL; /* local charset, for example: ISO-8859-1 */ |
char *local_charset = NULL; /* local charset, for example: ISO-8859-1 */ |
75 |
|
|
76 |
int server_cmd_line; /* at least one server on WeeChat command line */ |
int server_cmd_line; /* at least one server on WeeChat command line */ |
77 |
|
|
78 |
|
gnutls_anon_client_credentials gnutls_anoncred; /* gnutls client credentials */ |
79 |
|
|
80 |
|
|
81 |
/* |
/* |
371 |
if (!server_new (server_tmp.name, server_tmp.autoconnect, |
if (!server_new (server_tmp.name, server_tmp.autoconnect, |
372 |
server_tmp.autoreconnect, |
server_tmp.autoreconnect, |
373 |
server_tmp.autoreconnect_delay, |
server_tmp.autoreconnect_delay, |
374 |
1, server_tmp.address, server_tmp.port, |
1, server_tmp.address, server_tmp.port, 0, |
375 |
server_tmp.password, server_tmp.nick1, |
server_tmp.password, server_tmp.nick1, |
376 |
server_tmp.nick2, server_tmp.nick3, |
server_tmp.nick2, server_tmp.nick3, |
377 |
NULL, NULL, NULL, 0, server_tmp.autojoin, 1, NULL)) |
NULL, NULL, NULL, 0, server_tmp.autojoin, 1, NULL)) |
519 |
/* init received messages queue */ |
/* init received messages queue */ |
520 |
recv_msgq = NULL; |
recv_msgq = NULL; |
521 |
msgq_last_msg = NULL; |
msgq_last_msg = NULL; |
522 |
|
|
523 |
|
/* init gnutls */ |
524 |
|
gnutls_global_init (); |
525 |
|
gnutls_anon_allocate_client_credentials (&gnutls_anoncred); |
526 |
} |
} |
527 |
|
|
528 |
/* |
/* |
616 |
if (local_charset) |
if (local_charset) |
617 |
free (local_charset); |
free (local_charset); |
618 |
alias_free_all (); |
alias_free_all (); |
619 |
|
gnutls_anon_free_client_credentials (gnutls_anoncred); |
620 |
|
gnutls_global_deinit(); |
621 |
exit (return_code); |
exit (return_code); |
622 |
} |
} |
623 |
|
|