mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
/SET hostname didn't affect until restart.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@282 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ba69fc3ae7
commit
94adc5ef62
@ -357,11 +357,16 @@ static void read_servers(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void read_settings(void)
|
||||||
|
{
|
||||||
|
g_free_and_null(source_host_ip);
|
||||||
|
|
||||||
|
source_host_ok = FALSE;
|
||||||
|
get_source_host_ip();
|
||||||
|
}
|
||||||
|
|
||||||
void servers_setup_init(void)
|
void servers_setup_init(void)
|
||||||
{
|
{
|
||||||
source_host_ok = FALSE;
|
|
||||||
source_host_ip = NULL;
|
|
||||||
|
|
||||||
settings_add_int("server", "server_reconnect_time", 300);
|
settings_add_int("server", "server_reconnect_time", 300);
|
||||||
settings_add_str("server", "hostname", "");
|
settings_add_str("server", "hostname", "");
|
||||||
settings_add_bool("server", "skip_motd", FALSE);
|
settings_add_bool("server", "skip_motd", FALSE);
|
||||||
@ -377,15 +382,22 @@ void servers_setup_init(void)
|
|||||||
settings_add_str("ircproxy", "proxy_string", "CONNECT %s %d");
|
settings_add_str("ircproxy", "proxy_string", "CONNECT %s %d");
|
||||||
|
|
||||||
init_userinfo();
|
init_userinfo();
|
||||||
|
|
||||||
read_servers();
|
read_servers();
|
||||||
|
|
||||||
|
source_host_ip = NULL;
|
||||||
|
read_settings();
|
||||||
|
|
||||||
|
signal_add("setup changed", (SIGNAL_FUNC) read_settings);
|
||||||
signal_add("setup reread", (SIGNAL_FUNC) read_servers);
|
signal_add("setup reread", (SIGNAL_FUNC) read_servers);
|
||||||
}
|
}
|
||||||
|
|
||||||
void servers_setup_deinit(void)
|
void servers_setup_deinit(void)
|
||||||
{
|
{
|
||||||
|
g_free_not_null(source_host_ip);
|
||||||
|
|
||||||
while (setupservers != NULL)
|
while (setupservers != NULL)
|
||||||
setupserver_destroy(setupservers->data);
|
setupserver_destroy(setupservers->data);
|
||||||
|
|
||||||
|
signal_remove("setup changed", (SIGNAL_FUNC) read_settings);
|
||||||
signal_remove("setup reread", (SIGNAL_FUNC) read_servers);
|
signal_remove("setup reread", (SIGNAL_FUNC) read_servers);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user