diff options
author | uid67137 <uid67137> | 2003-12-26 12:59:31 +0000 |
---|---|---|
committer | uid67137 <uid67137> | 2003-12-26 12:59:31 +0000 |
commit | 3ea696bbc08ed1a2483bee71fc7b9b832624a88d (patch) | |
tree | d06fd79e5992324fb2e1818984baba79e622e30b /src/common/weeconfig.c | |
parent | 57e00428caa2001b7bc9e0e85d17ffed128544b6 (diff) | |
download | weechat-3ea696bbc08ed1a2483bee71fc7b9b832624a88d.zip |
Perl scripts auto-load, if no path given, look in ~/.weechat/perl when loading Perl script, auto create plugin directories at startup (~/.weechat/perl, /perl/autoload, /python, /python/autoload, /ruby, /ruby/autoload)
Diffstat (limited to 'src/common/weeconfig.c')
-rw-r--r-- | src/common/weeconfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/weeconfig.c b/src/common/weeconfig.c index 91fcc792f..4ddbe8d60 100644 --- a/src/common/weeconfig.c +++ b/src/common/weeconfig.c @@ -722,7 +722,7 @@ config_read () filename = (char *) malloc ((strlen (weechat_home) + 64) * sizeof (char)); - sprintf (filename, "%s/" WEECHAT_CONFIG_NAME, weechat_home); + sprintf (filename, "%s%s" WEECHAT_CONFIG_NAME, weechat_home, DIR_SEPARATOR); if ((file = fopen (filename, "rt")) == NULL) { gui_printf (NULL, _("%s config file \"%s\" not found.\n"), @@ -938,7 +938,7 @@ config_create_default () filename = (char *) malloc ((strlen (weechat_home) + 64) * sizeof (char)); - sprintf (filename, "%s/" WEECHAT_CONFIG_NAME, weechat_home); + sprintf (filename, "%s%s" WEECHAT_CONFIG_NAME, weechat_home, DIR_SEPARATOR); if ((file = fopen (filename, "wt")) == NULL) { gui_printf (NULL, _("%s cannot create file \"%s\"\n"), @@ -1070,7 +1070,7 @@ config_write (char *config_name) { filename = (char *) malloc ((strlen (weechat_home) + 64) * sizeof (char)); - sprintf (filename, "%s/" WEECHAT_CONFIG_NAME, weechat_home); + sprintf (filename, "%s%s" WEECHAT_CONFIG_NAME, weechat_home, DIR_SEPARATOR); } if ((file = fopen (filename, "wt")) == NULL) |