1

fixed minor issue with settings save format

This commit is contained in:
eleksir
2016-10-30 23:57:50 +03:00
parent 223603393b
commit b29e2e3b5f

View File

@@ -26,7 +26,7 @@ my $help = 'Usage:
/notify show - shows whitelists and their statuses /notify show - shows whitelists and their statuses
'; ';
register($script_name, '0.9', 'Sends *nix desktop notifications', \&freehooks); register($script_name, '0.9.1', 'Sends *nix desktop notifications', \&freehooks);
HexChat::print("$script_name loaded\n"); HexChat::print("$script_name loaded\n");
my @hooks; my @hooks;
@@ -341,7 +341,7 @@ sub loadlist($){
my $val = HexChat::plugin_pref_get($setting); my $val = HexChat::plugin_pref_get($setting);
unless (defined($val)) { unless (defined($val)) {
savesetting($setting, encode_base64('')); savesetting($setting, encode_base64('', ''));
$val = ''; $val = '';
} }
@@ -352,7 +352,7 @@ sub loadlist($){
sub savelist(@) { sub savelist(@) {
my $setting = shift; my $setting = shift;
my @list = map { encode_base64($_); } @_; my @list = map { encode_base64($_, ''); } @_;
my $value = join(' ', @list); my $value = join(' ', @list);
return savesetting($setting, $value); return savesetting($setting, $value);
} }