diff options
author | Timo Sirainen <cras@irssi.org> | 2001-07-15 00:39:48 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-07-15 00:39:48 +0000 |
commit | 79d1d7089a699cf8a09bd5227f9033282001b0b3 (patch) | |
tree | 11a2e10bce84587e2b5a13029c43354a185e846c /src/perl | |
parent | bcbb55dd1e0ecf828942dcc91d5661e9a44ab841 (diff) | |
download | irssi-79d1d7089a699cf8a09bd5227f9033282001b0b3.zip |
Added --home and --config command line parameters to irssi to specify
locations for ~/.irssi and ~/.irssi/config
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1626 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl')
-rw-r--r-- | src/perl/perl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/perl/perl.c b/src/perl/perl.c index 9fbab064..6fe5d3b5 100644 --- a/src/perl/perl.c +++ b/src/perl/perl.c @@ -184,7 +184,7 @@ static void cmd_run(const char *data) g_strdup(data) : g_strdup_printf("%s.pl", data); /* check from ~/.irssi/scripts/ */ - fname = g_strdup_printf("%s/.irssi/scripts/%s", g_get_home_dir(), name); + fname = g_strdup_printf("%s/scripts/%s", get_irssi_dir(), name); if (stat(fname, &statbuf) != 0) { /* check from SCRIPTDIR */ g_free(fname), @@ -368,7 +368,7 @@ static void irssi_perl_autorun(void) struct stat statbuf; char *path, *fname; - path = g_strdup_printf("%s/.irssi/scripts/autorun", g_get_home_dir()); + path = g_strdup_printf("%s/scripts/autorun", get_irssi_dir()); dirp = opendir(path); if (dirp == NULL) { g_free(path); |