summary refs log tree commit diff stats
path: root/plugins/python
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-11-04 23:55:36 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-11-04 23:55:36 +0100
commitdb218817fdc895aa2e3e52a71aa2f4423a534423 (patch)
tree42adbac9f667aa7a1dba5386150738fac84aeafc /plugins/python
parentad16ed3933b2904f3e4b206a67c4b67cc86622bc (diff)
Use configdir instead of *xchatdir*
Diffstat (limited to 'plugins/python')
-rw-r--r--plugins/python/python.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c
index efe57480..32acd522 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -394,13 +394,13 @@ Util_Autoload()
 	char *sub_dir;
 	/* we need local filesystem encoding for chdir, opendir etc */
 
-	xdir = hexchat_get_info(ph, "hexchatdirfs");
+	xdir = hexchat_get_info(ph, "configdir");
 
 	/* don't pollute the filesystem with script files, this only causes misuse of the folders
 	 * only use ~/.config/hexchat/addons/ and %APPDATA%\HexChat\addons */
 #if 0
 	/* auto-load from ~/.config/hexchat/ or %APPDATA%\HexChat\ */
-	Util_Autoload_from(hexchat_get_info(ph, "hexchatdirfs"));
+	Util_Autoload_from(hexchat_get_info(ph, "configdir"));
 #endif
 
 	/* auto-load from subdirectory addons */
@@ -450,7 +450,7 @@ Util_Expand(char *filename)
 	g_free(expanded);
 
 	/* Check if ~/.config/hexchat/addons/<filename> exists. */
-	expanded = g_build_filename(hexchat_get_info(ph, "hexchatdir"),
+	expanded = g_build_filename(hexchat_get_info(ph, "configdir"),
 				    "addons", filename, NULL);
 	if (g_file_test(expanded, G_FILE_TEST_EXISTS))
 		return expanded;