]> git.donarmstrong.com Git - infobot.git/commitdiff
strip out chan after results
authordondelelcaro <dondelelcaro@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 6 Mar 2014 20:34:01 +0000 (20:34 +0000)
committerdondelelcaro <dondelelcaro@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 6 Mar 2014 20:34:01 +0000 (20:34 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/branches/don/dpkg@1936 c11ca15a-4712-0410-83d8-924469b57eb5

src/Factoids/Question.pl

index 1b4d823847ada1b31123da7b70559e215786fab0..276f9e8c5ea402115ac51d3d99f17855f2f51a03 100644 (file)
@@ -224,6 +224,7 @@ sub factoidArgs {
     foreach ( sort { length($b) <=> length($a) } @list ) {
         next if (/#DEL#/);    # deleted.
 
+        s/^\Q$chan \E//i;
         s/^cmd: //i;
 
         #      &DEBUG("factarg: '$str' =~ /^$_\$/");