X-Git-Url: http://git.ieval.ro/?p=app-statsbot.git;a=blobdiff_plain;f=lib%2FApp%2FStatsbot.pm;fp=lib%2FApp%2FStatsbot.pm;h=49fb66fe0dda4aab3bbd5068265caf1c951a7c83;hp=d91020322efc2505ccf92ef89da5b6251fe8e842;hb=490e26f9bf344184da03c64458dbe28e3f49f208;hpb=410c016e029d80a8a8ce28b04e89a5160b8ebda1 diff --git a/lib/App/Statsbot.pm b/lib/App/Statsbot.pm index d910203..49fb66f 100644 --- a/lib/App/Statsbot.pm +++ b/lib/App/Statsbot.pm @@ -112,9 +112,9 @@ sub on_public{ my $botnick = $irc->nick_name; if ($message =~ /(?:$botnick[:,])?\s*!?help\s*(.*)/) { - $irc->yield("Try !presence username interval [truncate]"); - $irc->yield("For example, !presence mgv '2 days'"); - $irc->yield("or !presence mgv '1 year' 4"); + $irc->yield(privmsg => $targets, "Try !presence username interval [truncate]"); + $irc->yield(privmsg => $targets, "For example, !presence mgv '2 days'"); + $irc->yield(privmsg => $targets, "or !presence mgv '1 year' 4"); return; } @@ -131,7 +131,7 @@ sub on_public{ eval { $time = parse_duration $time; } or do { - $irc->yield("cannot parse timespec: $time"); + $irc->yield(privmsg => $targets, "cannot parse timespec: $time"); return; };