mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +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->{registry}->hash->{$section}->{$item}->{type} = $type;
|
||||||
|
|
||||||
$self->process_trigger($section, $item, $value) unless $is_default;
|
$self->process_trigger($section, $item, $value) unless $is_default;
|
||||||
$self->save_registry unless $is_default;
|
$self->save unless $is_default;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub remove {
|
sub remove {
|
||||||
@ -93,7 +93,7 @@ sub remove {
|
|||||||
delete $self->{registry}->hash->{$section};
|
delete $self->{registry}->hash->{$section};
|
||||||
}
|
}
|
||||||
|
|
||||||
$self->save_registry;
|
$self->save;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub set {
|
sub set {
|
||||||
|
@ -13,7 +13,7 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 766,
|
BUILD_REVISION => 767,
|
||||||
BUILD_DATE => "2014-08-04",
|
BUILD_DATE => "2014-08-04",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user