From a3ade659545bfa9e54ccac22cca878dd0ff8cba0 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 13 Feb 2016 18:38:43 -0800 Subject: [PATCH] Rename unregister_by_name to unregister --- PBot/Commands.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PBot/Commands.pm b/PBot/Commands.pm index bd6b7ee1..8ba0125c 100644 --- a/PBot/Commands.pm +++ b/PBot/Commands.pm @@ -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) {