X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Commands%2FBasic.pm;h=d0570f6c432070d423735d4ac6608ae4319fd420;hb=14fe324122bee271d8153f3db81491240a87895c;hp=62aa717eeb9327b4188b43f829968991b4f2adb7;hpb=5684c48c49dfeb5f75b10f70149debed1247c596;p=NDIRC.git diff --git a/Commands/Basic.pm b/Commands/Basic.pm index 62aa717..d0570f6 100644 --- a/Commands/Basic.pm +++ b/Commands/Basic.pm @@ -25,6 +25,7 @@ use NDIRC::Dispatcher; command commands => { help => q(commands | Gives help about all available commands or lists all commands available in the current channel), + type => 'help', }, class extends NDIRC::Command { method execute ($c,$command) { unless($command){ @@ -38,9 +39,7 @@ command commands => { } $c->reply(join ', ', @commands); }elsif (exists $c->disp->commands->{$command}){ - for (@{$c->disp->commands->{$command}->help}){ - $c->reply($_); - } + $c->reply($c->disp->commands->{$command}->help); } } };