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

Don't look for exact channel matter in Interpreter -- this way, commands like "\!what is the matter" will not attempt to create new factoids if they exist in global channel

This commit is contained in:
Pragmatic Software 2010-06-30 05:13:51 +00:00
parent 9fa3b865e9
commit 83b43d97c3
2 changed files with 3 additions and 2 deletions

View File

@ -180,7 +180,8 @@ sub interpret {
} elsif($command =~ /^([^ ]+)\s+is\s+(.*)$/) {
my ($k, $a) = ($1, $2);
my ($channel, $trigger) = $pbot->factoids->find_factoid($from, $k, undef, 1);
# my ($channel, $trigger) = $pbot->factoids->find_factoid($from, $k, undef, 1);
my ($channel, $trigger) = $pbot->factoids->find_factoid($from, $k);
if(defined $trigger) {
($keyword, $arguments) = ($k, "is $a");

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 220,
BUILD_REVISION => 221,
BUILD_DATE => "2010-06-29",
};