diff --git a/PBot/RegistryCommands.pm b/PBot/RegistryCommands.pm index 91358635..fa2e046f 100644 --- a/PBot/RegistryCommands.pm +++ b/PBot/RegistryCommands.pm @@ -61,7 +61,7 @@ sub regunset { if (not defined $section or not defined $item) { return $usage; } - if (not $self->{pbot}->{registry}->{registry}->exits($section)) { return "No such registry section $section."; } + if (not $self->{pbot}->{registry}->{registry}->exists($section)) { return "No such registry section $section."; } if (not $self->{pbot}->{registry}->{registry}->exists($section, $item)) { return "No such item $item in section $section."; }