diff options
author | Timo Sirainen <cras@irssi.org> | 2002-01-24 20:57:16 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-01-24 20:57:16 +0000 |
commit | 182adb805c59a2469810789697821c70249438f8 (patch) | |
tree | 49c1a8b28fd2f0901724a9c1f88908f60671cbc7 /src/fe-common | |
parent | d74d284463d4aa490b789f9be45a3e478929b0f7 (diff) | |
download | irssi-182adb805c59a2469810789697821c70249438f8.zip |
/SERVER ADD: added -noproxy option and -proxy which just removes the
-noproxy.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2344 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/fe-server.c | 4 | ||||
-rw-r--r-- | src/fe-common/irc/fe-irc-server.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-server.c b/src/fe-common/core/fe-server.c index cd783898..d8f9d137 100644 --- a/src/fe-common/core/fe-server.c +++ b/src/fe-common/core/fe-server.c @@ -146,6 +146,8 @@ static void cmd_server_add(const char *data) if (g_hash_table_lookup(optlist, "auto")) rec->autoconnect = TRUE; if (g_hash_table_lookup(optlist, "noauto")) rec->autoconnect = FALSE; + if (g_hash_table_lookup(optlist, "proxy")) rec->no_proxy = FALSE; + if (g_hash_table_lookup(optlist, "noproxy")) rec->no_proxy = TRUE; if (*password != '\0' && strcmp(password, "-") != 0) rec->password = g_strdup(password); value = g_hash_table_lookup(optlist, "host"); @@ -322,7 +324,7 @@ void fe_server_init(void) command_bind("server connect", NULL, (SIGNAL_FUNC) cmd_server_connect); command_bind("server add", NULL, (SIGNAL_FUNC) cmd_server_add); command_bind("server remove", NULL, (SIGNAL_FUNC) cmd_server_remove); - command_set_options("server add", "4 6 auto noauto -host -port"); + command_set_options("server add", "4 6 auto noauto proxy noproxy -host -port"); signal_add("server looking", (SIGNAL_FUNC) sig_server_looking); signal_add("server connecting", (SIGNAL_FUNC) sig_server_connecting); diff --git a/src/fe-common/irc/fe-irc-server.c b/src/fe-common/irc/fe-irc-server.c index a2ce1c0e..221c7943 100644 --- a/src/fe-common/irc/fe-irc-server.c +++ b/src/fe-common/irc/fe-irc-server.c @@ -75,6 +75,8 @@ static void cmd_server_list(const char *data) g_string_append(str, "(pass), "); if (rec->autoconnect) g_string_append(str, "autoconnect, "); + if (rec->no_proxy) + g_string_append(str, "noproxy, "); if (rec->max_cmds_at_once > 0) g_string_sprintfa(str, "cmdmax: %d, ", rec->max_cmds_at_once); if (rec->cmd_queue_speed > 0) |