3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 19:22:40 +01: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.";