mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 03:33:06 +01:00
Fix use of wrong sub name when saving registry entries in add/remove subs
This commit is contained in:
parent
b15ab7f84f
commit
ca37b4fd4e
@ -78,7 +78,7 @@ sub add {
|
||||
$self->{registry}->hash->{$section}->{$item}->{type} = $type;
|
||||
|
||||
$self->process_trigger($section, $item, $value) unless $is_default;
|
||||
$self->save_registry unless $is_default;
|
||||
$self->save unless $is_default;
|
||||
}
|
||||
|
||||
sub remove {
|
||||
@ -93,7 +93,7 @@ sub remove {
|
||||
delete $self->{registry}->hash->{$section};
|
||||
}
|
||||
|
||||
$self->save_registry;
|
||||
$self->save;
|
||||
}
|
||||
|
||||
sub set {
|
||||
|
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 766,
|
||||
BUILD_REVISION => 767,
|
||||
BUILD_DATE => "2014-08-04",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user