]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Question.pl
avoid reassigning to temp upon decode_utf8
[infobot.git] / src / Factoids / Question.pl
index 44a50ec462d9d796bf0d75d5920402dc7a38ce0e..c0cd087392b0947f9260770f3ccf3e814c5c2704 100644 (file)
@@ -216,14 +216,14 @@ sub factoidArgs {
 
     #    my $delta_time = &timedelta($t);
     #    &DEBUG("factArgs: delta_time = $delta_time s");
-    &DEBUG("factArgs: list[.".scalar(@list))."] => ".join(',',map {qq('$_')} @list) );
+    &DEBUG("factArgs: list[.".scalar(@list)."] => ".join(',',map {qq('$_')} @list));
 
     # from a design perspective, it's better to have the regex in
     # the factoid key to reduce repetitive processing.
 
     # it does not matter if it's not alphabetically sorted.
     foreach ( (sort { length($b) <=> length($a) } grep {$_ =~ /^\Q$chan \E/} @list),
-              (sort { length($b) <=> length($a) } grep {$_ =~ /^\Q_default \E/} @list)
+              (sort { length($b) <=> length($a) } grep {$_ =~ /^\Q_default \E/} @list),
               (sort { length($b) <=> length($a) } grep {$_ !~ /^(\Q$chan\E|default) /} @list)
             ) {
         next if (/#DEL#/);    # deleted.