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:
parent
611cc00102
commit
1b15ba615b
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user