mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
PBot: capabilities can now be reloaded
This commit is contained in:
parent
3be1299dd3
commit
bee6e18b8e
@ -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.";
|
||||
|
Loading…
Reference in New Issue
Block a user