From f894a1f744b0a3a1aa7ad28bae2f27cb0b5eb174 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Tue, 21 Sep 2010 13:35:29 -0400 Subject: [PATCH] making it more flexible --- plugins/factoids.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/factoids.pm b/plugins/factoids.pm index 3b1d0dd..294ad5b 100644 --- a/plugins/factoids.pm +++ b/plugins/factoids.pm @@ -608,7 +608,7 @@ sub basic_get_fact { } } else { - if ($subject =~ /\?$/) #check if some asshole decided to add a ? at the end of the factoid, if so remove it and recurse, this should only be able to recurse N times so it should be fine + if ($subject =~ /[\?\.\!]$/) #check if some asshole decided to add a ? at the end of the factoid, if so remove it and recurse, this should only be able to recurse N times so it should be fine { my $newsubject = $subject; $newsubject =~ s/\?$//;