3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 19:22:40 +01:00

AdminCommands: reload can now reload commands metadata

This commit is contained in:
Pragmatic Software 2020-01-20 16:52:44 -08:00
parent 942a152681
commit 3eb8bd15a6

View File

@ -316,6 +316,11 @@ sub reload {
my ($from, $nick, $user, $host, $arguments) = @_;
my %reloadables = (
'commands' => sub {
$self->{pbot}->{commands}->load_metadata;
return "Commands metadata reloaded.";
},
'blacklist' => sub {
$self->{pbot}->{blacklist}->clear_blacklist;
$self->{pbot}->{blacklist}->load_blacklist;