blob: f400157108219d1dc17222aa41498b6f9b924f9c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package IM::Engine::Plugin::Commands::Command::Help;
use IM::Engine::Plugin::Commands::OO;
has '+help' => (
default => 'Displays the help text for the given command',
);
sub default {
my $self = shift;
my ($sender, $action) = @_;
$self->is_active(0);
my $prefix = $self->_ime_plugin->prefix;
my $message = IM::Engine::Incoming->new(
sender => $self->_ime_plugin->_last_message->sender,
message => "${prefix}$action -help",
);
return $self->_ime_plugin->incoming($message);
}
1;
|