diff --git a/PBot/RegistryCommands.pm b/PBot/RegistryCommands.pm index 359aa485..834da870 100644 --- a/PBot/RegistryCommands.pm +++ b/PBot/RegistryCommands.pm @@ -30,7 +30,7 @@ sub new { sub initialize { 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; $pbot->{commands}->register(sub { return $self->regadd(@_) }, "regadd", 60);