mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +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 {
|
||||
my ($self, $name) = @_;
|
||||
Carp::croak("Missing name parameter to Commands::unregister") if not defined $name;
|
||||
$name = lc $name;
|
||||
delete $self->{commands}->{$name};
|
||||
delete $self->{commands}->{lc $name};
|
||||
}
|
||||
|
||||
sub exists {
|
||||
|
Loading…
Reference in New Issue
Block a user