diff options
author | David Phillips <david@sighup.nz> | 2018-09-21 21:29:17 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-09-21 21:32:28 +1200 |
commit | 0475f0bb2fa7ee2f211c67f8df68b014c7fbd213 (patch) | |
tree | 5d40897f5508f6c681d93145506d1e4fa0ebd53a /Plugin/Introspect.pm | |
parent | f2812c477b230a1407381bfbbb393119c7280076 (diff) | |
download | idalius-0475f0bb2fa7ee2f211c67f8df68b014c7fbd213.tar.xz |
Add runtime module {,un}loading
Diffstat (limited to 'Plugin/Introspect.pm')
-rw-r--r-- | Plugin/Introspect.pm | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Plugin/Introspect.pm b/Plugin/Introspect.pm deleted file mode 100644 index 05f338a..0000000 --- a/Plugin/Introspect.pm +++ /dev/null @@ -1,24 +0,0 @@ -package Plugin::Introspect; - -use strict; -use warnings; - -my $root_config; - -sub configure { - my $self = shift; - my $cmdref = shift; - shift; # run_command - shift; # module config - $root_config = shift; - - $cmdref->("plugins", sub { $self->dump_plugins(@_); } ); - - return $self; -} - -sub dump_plugins { - my ($self, $irc, $logger, $who, $where, $ided, $rest, @arguments) = @_; - return "Plugins: " . join ", ", $root_config->{plugins}; -} -1; |