mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
Save registry entries immediately after using set/unset
This commit is contained in:
parent
3b961e0f29
commit
452ac7fc4c
@ -112,6 +112,8 @@ sub set {
|
||||
$self->process_trigger($section, $item, $value);
|
||||
}
|
||||
|
||||
$self->save if $result =~ m/set to/;
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
@ -122,7 +124,9 @@ sub unset {
|
||||
$item = lc $item;
|
||||
$key = lc $key;
|
||||
|
||||
return $self->{registry}->unset($section, $item, $key);
|
||||
my $result = $self->{registry}->unset($section, $item, $key);
|
||||
$self->save;
|
||||
return $result;
|
||||
}
|
||||
|
||||
sub get_value {
|
||||
|
Loading…
Reference in New Issue
Block a user