mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Added -noproxy option to /CONNECT and /SERVER.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2322 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
77c658bf80
commit
c20cc9bb1f
@ -86,6 +86,9 @@ static SERVER_CONNECT_REC *get_server_connect(const char *data, int *plus_addr)
|
|||||||
if (g_hash_table_lookup(optlist, "!") != NULL)
|
if (g_hash_table_lookup(optlist, "!") != NULL)
|
||||||
conn->no_autojoin_channels = TRUE;
|
conn->no_autojoin_channels = TRUE;
|
||||||
|
|
||||||
|
if (g_hash_table_lookup(optlist, "noproxy") != NULL)
|
||||||
|
g_free_and_null(conn->proxy);
|
||||||
|
|
||||||
host = g_hash_table_lookup(optlist, "host");
|
host = g_hash_table_lookup(optlist, "host");
|
||||||
if (host != NULL && *host != '\0') {
|
if (host != NULL && *host != '\0') {
|
||||||
IPADDR ip4, ip6;
|
IPADDR ip4, ip6;
|
||||||
@ -397,7 +400,7 @@ void chat_commands_init(void)
|
|||||||
|
|
||||||
signal_add("default command server", (SIGNAL_FUNC) sig_default_command_server);
|
signal_add("default command server", (SIGNAL_FUNC) sig_default_command_server);
|
||||||
|
|
||||||
command_set_options("connect", "4 6 !! +host");
|
command_set_options("connect", "4 6 !! +host noproxy");
|
||||||
command_set_options("join", "invite");
|
command_set_options("join", "invite");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user