package Plugin::DevNull; use strict; use warnings; my $run_command; sub configure { my $self = shift; my $cmdref = shift; $run_command = shift; $cmdref->($self, "hush", sub { $self->hush(@_); } ); $cmdref->($self, "devnull", sub { $self->hush(@_); } ); return $self; } sub hush { my ($self, $irc, $logger, $who, $where, $ided, $rest, $no_reenter, @arguments) = @_; $run_command->($rest, $who, $where, $ided); return; } 1;