diff options
-rw-r--r-- | lib/IM/Engine/Plugin/Commands/Command.pm | 6 |
1 files changed, 1 insertions, 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; |