aboutsummaryrefslogtreecommitdiff
path: root/Plugin
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-09-10 19:38:42 +1200
committerDavid Phillips <david@sighup.nz>2018-09-10 19:38:42 +1200
commita53eb4b24ffa4746cc219ebda7d1fbd4881c157d (patch)
treee20fda36bfece145d96e17b0a128c32795117b79 /Plugin
parent8b479752eeb57daeaf2b9f0347fc0c46dd5d4fc5 (diff)
downloadidalius-a53eb4b24ffa4746cc219ebda7d1fbd4881c157d.tar.xz
Admin: Remove accidental overlap with new action handling
Diffstat (limited to 'Plugin')
-rw-r--r--Plugin/Admin.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugin/Admin.pm b/Plugin/Admin.pm
index ceaa984..02046da 100644
--- a/Plugin/Admin.pm
+++ b/Plugin/Admin.pm
@@ -12,7 +12,7 @@ sub configure {
%config = %$cref;
$cmdref->("say", sub { $self->say(@_); } );
- $cmdref->("action", sub { $self->action(@_); } );
+ $cmdref->("action", sub { $self->do_action(@_); } );
$cmdref->("nick", sub { $self->nick(@_); } );
$cmdref->("join", sub { $self->join_channel(@_); } );
@@ -61,7 +61,7 @@ sub say {
$irc->yield(privmsg => $arguments[0] => $rest);
}
-sub action {
+sub do_action {
my ($self, $irc, $logger, $who, $where, $rest, @arguments) = @_;
return unless is_admin($who);