mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
/CONNECT -! doesn't autojoin to channels.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2082 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
4978d4cd14
commit
01404a3713
@ -148,7 +148,8 @@ static void event_connected(SERVER_REC *server)
|
|||||||
|
|
||||||
g_return_if_fail(SERVER(server));
|
g_return_if_fail(SERVER(server));
|
||||||
|
|
||||||
if (server->connrec->reconnection)
|
if (server->connrec->reconnection ||
|
||||||
|
server->connrec->no_autojoin_channels)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* get list of servers in same chat network */
|
/* get list of servers in same chat network */
|
||||||
|
@ -83,6 +83,9 @@ static SERVER_CONNECT_REC *get_server_connect(const char *data, int *plus_addr)
|
|||||||
else if (g_hash_table_lookup(optlist, "4") != NULL)
|
else if (g_hash_table_lookup(optlist, "4") != NULL)
|
||||||
conn->family = AF_INET;
|
conn->family = AF_INET;
|
||||||
|
|
||||||
|
if (g_hash_table_lookup(optlist, "!") != NULL)
|
||||||
|
conn->no_autojoin_channels = TRUE;
|
||||||
|
|
||||||
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;
|
||||||
@ -394,7 +397,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");
|
||||||
command_set_options("join", "invite");
|
command_set_options("join", "invite");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,5 +25,6 @@ char *realname;
|
|||||||
|
|
||||||
/* when reconnecting, the old server status */
|
/* when reconnecting, the old server status */
|
||||||
unsigned int reconnection:1; /* we're trying to reconnect */
|
unsigned int reconnection:1; /* we're trying to reconnect */
|
||||||
|
unsigned int no_autojoin_channels:1; /* don't autojoin any channels */
|
||||||
char *channels;
|
char *channels;
|
||||||
char *away_reason;
|
char *away_reason;
|
||||||
|
Loading…
Reference in New Issue
Block a user