mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-27 06:19:25 +01:00
Restore missing "$keyword is $result" when triggering factoid without $ref_from
This commit is contained in:
parent
a4def7d653
commit
aeec4fb2f5
@ -119,7 +119,7 @@ sub export_factoids {
|
||||
print FILE '<script type="text/javascript" src="js/jquery-latest.js"></script>' . "\n";
|
||||
print FILE '<script type="text/javascript" src="js/jquery.tablesorter.js"></script>' . "\n";
|
||||
print FILE "</head>\n<body><i>Last updated at $time</i>\n";
|
||||
print FILE "<hr><h2>Candide's factoids</h2>\n<hr>\n";
|
||||
print FILE "<hr><h2>Candide's factoids</h2>\n";
|
||||
|
||||
my $i = 0;
|
||||
my $table_id = 1;
|
||||
@ -488,7 +488,11 @@ sub interpreter {
|
||||
return $ref_from . "$keyword is $result";
|
||||
}
|
||||
} else {
|
||||
if($result =~ m/^\/say/i || $result =~ m/^\/me/i || $result =~ m/^\/msg/i) {
|
||||
return $result;
|
||||
} else {
|
||||
return "$keyword is $result";
|
||||
}
|
||||
}
|
||||
} elsif($self->factoids->hash->{$channel}->{$keyword}->{type} eq 'regex') {
|
||||
$result = eval {
|
||||
|
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 452,
|
||||
BUILD_REVISION => 453,
|
||||
BUILD_DATE => "2013-10-14",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user