mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 10:59:29 +01:00
RegistryCommands: Fix harmless typo
This commit is contained in:
parent
9692abfcbf
commit
e06f484a6e
@ -30,7 +30,7 @@ sub new {
|
|||||||
sub initialize {
|
sub initialize {
|
||||||
my ($self, %conf) = @_;
|
my ($self, %conf) = @_;
|
||||||
|
|
||||||
my $pbot = delete $conf{pbot} // Carp::croak("Missing pbot reference to FactoidCommands");
|
my $pbot = delete $conf{pbot} // Carp::croak("Missing pbot reference to " . __FILE__);
|
||||||
$self->{pbot} = $pbot;
|
$self->{pbot} = $pbot;
|
||||||
|
|
||||||
$pbot->{commands}->register(sub { return $self->regadd(@_) }, "regadd", 60);
|
$pbot->{commands}->register(sub { return $self->regadd(@_) }, "regadd", 60);
|
||||||
|
Loading…
Reference in New Issue
Block a user