diff --git a/PBot/FactoidCommands.pm b/PBot/FactoidCommands.pm index 44ff1ae3..bee3ac14 100644 --- a/PBot/FactoidCommands.pm +++ b/PBot/FactoidCommands.pm @@ -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 { diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index c21f25e3..9c2cb40b 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -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", };