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:
parent
42c2554655
commit
d080a6ff89
@ -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 {
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user