X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FFactoids%2FQuestion.pl;fp=src%2FFactoids%2FQuestion.pl;h=276f9e8c5ea402115ac51d3d99f17855f2f51a03;hb=259c98fddbf7e70d394cb58b11af56af8695e251;hp=1b4d823847ada1b31123da7b70559e215786fab0;hpb=20440d642f070b3edbba2bf7eff9d4f37d1cd86b;p=infobot.git 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' =~ /^$_\$/");