From 83b43d97c3bbd465a3ed98bbe84294f7df9cb270 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 30 Jun 2010 05:13:51 +0000 Subject: [PATCH] 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 --- PBot/Interpreter.pm | 3 ++- PBot/VERSION.pm | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index 54f0864f..db956421 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -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"); diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 7db0a0f6..1d9a1011 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 => 220, + BUILD_REVISION => 221, BUILD_DATE => "2010-06-29", };