projects
/
app-statsbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
410c016
)
Send error messages correctly
author
Marius Gavrilescu
<marius@ieval.ro>
Sat, 24 Oct 2015 23:44:38 +0000
(
00:44
+0100)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sat, 24 Oct 2015 23:44:38 +0000
(
00:44
+0100)
lib/App/Statsbot.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/App/Statsbot.pm
b/lib/App/Statsbot.pm
index d91020322efc2505ccf92ef89da5b6251fe8e842..49fb66fe0dda4aab3bbd5068265caf1c951a7c83 100644
(file)
--- 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*(.*)/) {
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;
}
return;
}
@@
-131,7
+131,7
@@
sub on_public{
eval {
$time = parse_duration $time;
} or do {
eval {
$time = parse_duration $time;
} or do {
- $irc->yield("cannot parse timespec: $time");
+ $irc->yield(
privmsg => $targets,
"cannot parse timespec: $time");
return;
};
return;
};
This page took
0.011437 seconds
and
4
git commands to generate.