3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 03:33:06 +01:00

Rename unregister_by_name to unregister

This commit is contained in:
Pragmatic Software 2016-02-13 18:38:43 -08:00
parent 8af19a75e9
commit a3ade65954

View File

@ -44,9 +44,7 @@ sub initialize {
}
sub register {
my $self = shift;
my ($subref, $name, $level) = @_;
my ($self, $subref, $name, $level) = @_;
if((not defined $subref) || (not defined $name) || (not defined $level)) {
Carp::croak("Missing parameters to Commands::register");
@ -62,7 +60,7 @@ sub register {
return $ref;
}
sub unregister_by_name {
sub unregister {
my ($self, $name) = @_;
if(not defined $name) {