From: dondelelcaro Date: Thu, 6 Mar 2014 20:34:01 +0000 (+0000) Subject: strip out chan after results X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=259c98fddbf7e70d394cb58b11af56af8695e251;p=infobot.git strip out chan after results git-svn-id: https://svn.code.sf.net/p/infobot/code/branches/don/dpkg@1936 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Factoids/Question.pl b/src/Factoids/Question.pl index 1b4d823..276f9e8 100644 --- a/src/Factoids/Question.pl +++ b/src/Factoids/Question.pl @@ -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' =~ /^$_\$/");