mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 12:12:34 +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 ($from, $nick, $user, $host, $arguments) = @_;
|
||||||
|
|
||||||
my %reloadables = (
|
my %reloadables = (
|
||||||
|
'capabilities' => sub {
|
||||||
|
$self->{capabilities}->load;
|
||||||
|
return "Capabilities reloaded.";
|
||||||
|
},
|
||||||
|
|
||||||
'commands' => sub {
|
'commands' => sub {
|
||||||
$self->{commands}->load_metadata;
|
$self->{commands}->load_metadata;
|
||||||
return "Commands metadata reloaded.";
|
return "Commands metadata reloaded.";
|
||||||
|
Loading…
Reference in New Issue
Block a user