1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 02:33:12 +02:00

Add function "string_expand_home" in plugin API, fix bug with replacement of home in paths

This commit is contained in:
Sebastien Helleu
2010-05-02 18:21:58 +02:00
parent 1836b40a4a
commit 4616ca981e
15 changed files with 154 additions and 43 deletions
+1 -2
View File
@@ -82,8 +82,7 @@ logger_get_file_path ()
goto end;
/* replace "~" with user home */
file_path = weechat_string_replace (weechat_config_string (logger_config_file_path),
"~", getenv ("HOME"));
file_path = weechat_string_expand_home (weechat_config_string (logger_config_file_path));
if (!file_path)
goto end;