X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=xmlrtorrent.git;a=blobdiff_plain;f=xmlrtorrent.pl;h=9d5a77d63a628413e0087268a1f52a6f14d21714;hp=4c3e5201d74e9fb8fc190379c9abf4e3b962e03a;hb=f53811070671adc7647202740c5921bc6ae8340d;hpb=9a9ec8e4e95f6aa38ab9dc2bef2ee15641ffef16 diff --git a/xmlrtorrent.pl b/xmlrtorrent.pl index 4c3e520..9d5a77d 100644 --- a/xmlrtorrent.pl +++ b/xmlrtorrent.pl @@ -323,14 +323,25 @@ sub cmd_help { my $target = shift; my $p; - write_irssi(<<'EOT'); + if (defined($target)) { + foreach $p (@talkers) { + if ($p->{'NAME'} eq $target) { + write_irssi($p->gethelpstr()); + return; + } + } + write_irssi('No such module'); + } else { + write_irssi(<<'EOT'); Supported commands: save: save the current configuration - help: display this help or module specific help + help [modulename]: display this help or module specific help talker [modulename]: display or set the talker to use debug: enable debugging messages nodebug: disable debugging messages EOT +; + } } sub cmd_talker {