Use configdir instead of *xchatdir*

This commit is contained in:
Berke Viktor
2012-11-04 23:55:36 +01:00
parent ad16ed3933
commit db218817fd
17 changed files with 45 additions and 55 deletions

View File

@@ -207,7 +207,7 @@ sub reload {
}
sub reload_all {
my @dirs = Xchat::get_info( "hexchatdirfs" ) || Xchat::get_info( "hexchatdir" );
my @dirs = Xchat::get_info( "configdir" );
push @dirs, File::Spec->catdir( $dirs[0], "plugins" );
for my $dir ( @dirs ) {
my $auto_load_glob = File::Spec->catfile( $dir, "*.pl" );

View File

@@ -6,7 +6,7 @@ my $last_modified;
my @servers;
sub get {
my $server_file = Xchat::get_info( "hexchatdirfs" ) . "/servlist_.conf";
my $server_file = Xchat::get_info( "configdir" ) . "/servlist_.conf";
# recreate the list only if the server list file has changed
if( -f $server_file &&