mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
Rename unregister_by_name to unregister
This commit is contained in:
parent
8af19a75e9
commit
a3ade65954
@ -44,9 +44,7 @@ sub initialize {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub register {
|
sub register {
|
||||||
my $self = shift;
|
my ($self, $subref, $name, $level) = @_;
|
||||||
|
|
||||||
my ($subref, $name, $level) = @_;
|
|
||||||
|
|
||||||
if((not defined $subref) || (not defined $name) || (not defined $level)) {
|
if((not defined $subref) || (not defined $name) || (not defined $level)) {
|
||||||
Carp::croak("Missing parameters to Commands::register");
|
Carp::croak("Missing parameters to Commands::register");
|
||||||
@ -62,7 +60,7 @@ sub register {
|
|||||||
return $ref;
|
return $ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub unregister_by_name {
|
sub unregister {
|
||||||
my ($self, $name) = @_;
|
my ($self, $name) = @_;
|
||||||
|
|
||||||
if(not defined $name) {
|
if(not defined $name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user