diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-30 09:59:58 +0100 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-30 09:59:58 +0100 |
commit | 29f7a9180caa1b8278bf3d9c6a9b49a0b59a1000 (patch) | |
tree | c22557d059e0137a84e3b948963d409a7c225ee6 /plugins/perl/perl.c | |
parent | 66be50f3350248fac4292287776f9e416de77f5a (diff) |
Rebrand get_info(xchatdir) but remain compatible for Perl and Python
Diffstat (limited to 'plugins/perl/perl.c')
-rw-r--r-- | plugins/perl/perl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/perl/perl.c b/plugins/perl/perl.c index 5427c62f..0d3674b9 100644 --- a/plugins/perl/perl.c +++ b/plugins/perl/perl.c @@ -144,9 +144,7 @@ perl_auto_load (void *unused) #endif /* get the dir in local filesystem encoding (what opendir() expects!) */ - xdir = hexchat_get_info (ph, "xchatdirfs"); - if (!xdir) /* xchatdirfs is new for 2.0.9, will fail on older */ - xdir = hexchat_get_info (ph, "xchatdir"); + xdir = hexchat_get_info (ph, "hexchatdirfs"); /* don't pollute the filesystem with script files, this only causes misuse of the folders * only use ~/.config/hexchat/addons/ and %APPDATA%\HexChat\addons */ @@ -796,7 +794,7 @@ XS (XS_Xchat_get_info) if ( !strncmp ("libdirfs", SvPV_nolen (id), 8) || - !strncmp ("xchatdirfs", SvPV_nolen (id), 10) + !strncmp ("hexchatdirfs", SvPV_nolen (id), 10) ) { XSRETURN_PV (RETVAL); } else { |