3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +02:00

PBot: capabilities can now be reloaded

This commit is contained in:
Pragmatic Software 2020-02-11 21:14:27 -08:00
parent 3be1299dd3
commit bee6e18b8e

View File

@ -415,6 +415,11 @@ sub reload {
my ($from, $nick, $user, $host, $arguments) = @_;
my %reloadables = (
'capabilities' => sub {
$self->{capabilities}->load;
return "Capabilities reloaded.";
},
'commands' => sub {
$self->{commands}->load_metadata;
return "Commands metadata reloaded.";