3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

factshow command now shows module action

This commit is contained in:
Pragmatic Software 2014-03-05 14:30:02 +00:00
parent 42c2554655
commit d080a6ff89
2 changed files with 5 additions and 3 deletions

View File

@ -479,11 +479,13 @@ sub factshow {
return "/msg $nick '$trig' not found in channel '$chan'";
}
my $result = "$trigger: " . $factoids->{$channel}->{$trigger}->{action};
if($factoids->{$channel}->{$trigger}->{type} eq 'module') {
return "/msg $nick $trigger is not a factoid";
$result .= ' [module]';
}
return "$trigger: " . $factoids->{$channel}->{$trigger}->{action};
return $result;
}
sub factinfo {

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 504,
BUILD_REVISION => 505,
BUILD_DATE => "2014-03-05",
};