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;
}
eval {
$time = parse_duration $time;
} or do {
- $irc->yield("cannot parse timespec: $time");
+ $irc->yield(privmsg => $targets, "cannot parse timespec: $time");
return;
};