From a53eb4b24ffa4746cc219ebda7d1fbd4881c157d Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 10 Sep 2018 19:38:42 +1200 Subject: Admin: Remove accidental overlap with new action handling --- Plugin/Admin.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Plugin/Admin.pm') 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); -- cgit v1.1