From 209209d52ed62d62ef477e4385c4021723efc105 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 31 Oct 2009 14:34:55 -0500 Subject: use handles instead of manual delegation --- lib/IM/Engine/Plugin/Commands/Command.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/IM/Engine/Plugin/Commands/Command.pm b/lib/IM/Engine/Plugin/Commands/Command.pm index 5b6b46d..88f2995 100644 --- a/lib/IM/Engine/Plugin/Commands/Command.pm +++ b/lib/IM/Engine/Plugin/Commands/Command.pm @@ -21,6 +21,7 @@ has _ime_plugin => ( isa => 'IM::Engine::Plugin', required => 1, weak_ref => 1, + handles => ['say'], ); sub default { @@ -42,11 +43,6 @@ command cmdlist => sub { return join ' ', sort map { '-' . $_ } @$list }; -sub say { - my $self = shift; - $self->_ime_plugin->say(@_); -} - __PACKAGE__->meta->make_immutable; no IM::Engine::Plugin::Commands::OO; -- cgit v1.2.3