From e06f484a6ece41457c0d78c8865fd3ecfd00f3dd Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 24 Aug 2019 17:31:24 -0700 Subject: [PATCH] RegistryCommands: Fix harmless typo --- PBot/RegistryCommands.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);