diff options
author | Timo Sirainen <cras@irssi.org> | 2001-07-28 23:24:45 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-07-28 23:24:45 +0000 |
commit | 35ce180f1025835f1360610bc3f06466799ebbb8 (patch) | |
tree | b9b1f7f4076351bb38bd62ebe36aae5cf41a1ce4 | |
parent | 2bc284c77e421248f810fff25ea141dff9c93eb9 (diff) | |
download | irssi-35ce180f1025835f1360610bc3f06466799ebbb8.zip |
--hostname and --nick options didn't have effect for autoconnected servers.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1661 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-common/core/fe-common-core.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index 37c4163f..66a2e602 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -344,20 +344,25 @@ static void autoconnect_servers(void) void fe_common_core_finish_init(void) { + int setup_changed; + signal_emit("irssi init read settings", 0); #ifdef SIGPIPE signal(SIGPIPE, SIG_IGN); #endif + setup_changed = FALSE; if (cmdline_nick != NULL) { /* override nick found from setup */ settings_set_str("nick", cmdline_nick); + setup_changed = TRUE; } if (cmdline_hostname != NULL) { /* override host name found from setup */ settings_set_str("hostname", cmdline_hostname); + setup_changed = TRUE; } create_windows(); @@ -368,5 +373,8 @@ void fe_common_core_finish_init(void) G_LOG_LEVEL_WARNING), (GLogFunc) glog_func, NULL); + if (setup_changed) + signal_emit("setup changed", 0); + autoconnect_servers(); } |