diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-03-20 20:42:05 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-03-20 20:42:05 +0100 |
commit | c29b45a0f2ef86fde6e6a28317ba13d5d873ee5d (patch) | |
tree | 31ceab57d66eecad367c5ca674afa6900dfbd6d3 /src/core | |
parent | c05cb595dc83f0691227e004fc74017dc9b5fad9 (diff) | |
download | weechat-c29b45a0f2ef86fde6e6a28317ba13d5d873ee5d.zip |
api: add info "auto_connect" (closes #1453)
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/weechat.c | 3 | ||||
-rw-r--r-- | src/core/weechat.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/core/weechat.c b/src/core/weechat.c index e88988eff..04b09da0c 100644 --- a/src/core/weechat.c +++ b/src/core/weechat.c @@ -114,6 +114,7 @@ int weechat_no_gcrypt = 0; /* remove init/deinit of gcrypt */ /* (useful with valgrind) */ struct t_weelist *weechat_startup_commands = NULL; /* startup commands */ /* (option -r) */ +int weechat_auto_connect = 1; /* auto-connect to servers */ /* @@ -256,7 +257,7 @@ weechat_parse_args (int argc, char *argv[]) switch (opt) { case 'a': /* -a / --no-connect */ - /* option ignored, it will be used by the irc plugin */ + /* option ignored, it will be used by plugins/scripts */ break; case 'c': /* -c / --colors */ gui_color_display_terminal_colors (); diff --git a/src/core/weechat.h b/src/core/weechat.h index 2fab8044d..274d54392 100644 --- a/src/core/weechat.h +++ b/src/core/weechat.h @@ -116,6 +116,7 @@ extern int weechat_plugin_no_dlclose; extern int weechat_no_gnutls; extern int weechat_no_gcrypt; extern struct t_weelist *weechat_startup_commands; +extern int weechat_auto_connect; extern void weechat_term_check (); extern void weechat_shutdown (int return_code, int crash); |