X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FFactoids%2FStatement.pl;fp=src%2FFactoids%2FStatement.pl;h=1cc50cb98c47a7fa6e1e4dbe2feb8ba021f999c2;hb=f27ed0be56c5563bef6f8ee2614b8b9cff6f9008;hp=b7cb0a79937a53c121e4be64a52fa81976e595b0;hpb=5dc76f77fd234b088540f8bbf8b335dbe6ee21ac;p=infobot.git diff --git a/src/Factoids/Statement.pl b/src/Factoids/Statement.pl index b7cb0a7..1cc50cb 100644 --- a/src/Factoids/Statement.pl +++ b/src/Factoids/Statement.pl @@ -119,8 +119,8 @@ sub doStatement { # characters. ### this can be simplified. for my $temp ($lhs,$rhs ) { - $temp = decode_utf8($temp); - if ($temp =~ /([^[:print:]])/ or $temp =~ /\N{U+FFFD}/) { + my $temp2 = decode_utf8($temp); + if ($temp2 =~ /([^[:print:]])/ or $temp2 =~ /\N{U+FFFD}/) { &status("statement: illegal character '$1' ".ord($1)."."); &performAddressedReply( "i'm not going to learn illegal characters");