diff options
author | David Phillips <david@sighup.nz> | 2018-09-10 19:38:42 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-09-10 19:38:42 +1200 |
commit | a53eb4b24ffa4746cc219ebda7d1fbd4881c157d (patch) | |
tree | e20fda36bfece145d96e17b0a128c32795117b79 | |
parent | 8b479752eeb57daeaf2b9f0347fc0c46dd5d4fc5 (diff) | |
download | idalius-a53eb4b24ffa4746cc219ebda7d1fbd4881c157d.tar.xz |
Admin: Remove accidental overlap with new action handling
-rw-r--r-- | Plugin/Admin.pm | 4 |
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); |