3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 19:22:40 +01:00

Commands: insignificant refactor to remove an extra line

This commit is contained in:
Pragmatic Software 2021-07-23 18:37:45 -07:00
parent 611cc00102
commit 1b15ba615b

View File

@ -76,8 +76,7 @@ sub register {
sub unregister { sub unregister {
my ($self, $name) = @_; my ($self, $name) = @_;
Carp::croak("Missing name parameter to Commands::unregister") if not defined $name; Carp::croak("Missing name parameter to Commands::unregister") if not defined $name;
$name = lc $name; delete $self->{commands}->{lc $name};
delete $self->{commands}->{$name};
} }
sub exists { sub exists {