summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-07 19:30:58 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-07 19:30:58 +0000
commit2891a871b79aad25d283d2a8ab8c74d3e39e2351 (patch)
treea8278dfa99d285ca7995b41b505c65d8feb52a0f /src/core
parent7b70a3d91a006c0182d9aae89f405a778dbfc643 (diff)
downloadirssi-2891a871b79aad25d283d2a8ab8c74d3e39e2351.zip
only the first of --home / --config parameters were parsed, which broke eg.
irssi which was started with --config and /UPGRADEd. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2401 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/core.c b/src/core/core.c
index f453a88f..2321208e 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -159,12 +159,9 @@ void core_init_paths(int argc, char *argv[])
len = strlen(irssi_dir);
if (irssi_dir[len-1] == G_DIR_SEPARATOR)
irssi_dir[len-1] = '\0';
- break;
- }
- if (strncmp(argv[n], "--config=", 9) == 0) {
+ } else if (strncmp(argv[n], "--config=", 9) == 0) {
g_free_not_null(irssi_config_file);
irssi_config_file = convert_home(argv[n]+9);
- break;
}
}