summary refs log tree commit diff stats
path: root/plugins/perl/perl.c
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/perl/perl.c
parentad16ed3933b2904f3e4b206a67c4b67cc86622bc (diff)
Use configdir instead of *xchatdir*
Diffstat (limited to 'plugins/perl/perl.c')
-rw-r--r--plugins/perl/perl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/perl/perl.c b/plugins/perl/perl.c
index ba0d0a8d..2b7c073b 100644
--- a/plugins/perl/perl.c
+++ b/plugins/perl/perl.c
@@ -144,7 +144,7 @@ perl_auto_load (void *unused)
 #endif
 
 	/* get the dir in local filesystem encoding (what opendir() expects!) */
-	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 */
@@ -794,7 +794,8 @@ XS (XS_Xchat_get_info)
 			
 			if (
 				!strncmp ("libdirfs", SvPV_nolen (id), 8) ||
-				!strncmp ("hexchatdirfs", SvPV_nolen (id), 10)
+				!strncmp ("xchatdirfs", SvPV_nolen (id), 10) ||
+				!strncmp ("configdir", SvPV_nolen (id), 9)
 			) {
 				XSRETURN_PV (RETVAL);
 			} else {