mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +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:
parent
9fa3b865e9
commit
83b43d97c3
@ -180,7 +180,8 @@ sub interpret {
|
|||||||
} elsif($command =~ /^([^ ]+)\s+is\s+(.*)$/) {
|
} elsif($command =~ /^([^ ]+)\s+is\s+(.*)$/) {
|
||||||
my ($k, $a) = ($1, $2);
|
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) {
|
if(defined $trigger) {
|
||||||
($keyword, $arguments) = ($k, "is $a");
|
($keyword, $arguments) = ($k, "is $a");
|
||||||
|
@ -13,7 +13,7 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 220,
|
BUILD_REVISION => 221,
|
||||||
BUILD_DATE => "2010-06-29",
|
BUILD_DATE => "2010-06-29",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user