]> git.donarmstrong.com Git - infobot.git/commitdiff
* Fix bug with "whois" anywhere in factoid key not triggering properly
authortroubled-irc <troubled-irc@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 6 Oct 2007 20:02:47 +0000 (20:02 +0000)
committertroubled-irc <troubled-irc@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 6 Oct 2007 20:02:47 +0000 (20:02 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1353 c11ca15a-4712-0410-83d8-924469b57eb5

src/Factoids/Core.pl

index 72d8216d6c5d508b21f461f4e2126b7ef0b9a9f0..205158d27acb09860175c8d6df893d403e6997f6 100644 (file)
@@ -460,7 +460,7 @@ sub FactoidStuff {
        # fix the string.
        s/^hey([, ]+)where/where/i;
        s/\s+\?$/?/;
-       s/whois/who is/ig;
+       s/^whois/who is/i; # Must match ^, else factoids with "whois" anywhere break
        s/where can i find/where is/i;
        s/how about/where is/i;
        s/ da / the /ig;