From: Christian Garbs Date: Sun, 28 Dec 2008 12:45:57 +0000 (+0100) Subject: fix % escaping X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=xmlrtorrent.git;a=commitdiff_plain;h=74ae410f9a2904817bcb6b174a9544851d836af1 fix % escaping --- diff --git a/xmlrtorrent.pl b/xmlrtorrent.pl index 3a93181..6914eb4 100644 --- a/xmlrtorrent.pl +++ b/xmlrtorrent.pl @@ -93,7 +93,7 @@ sub write_irssi { my $format = '%%mxmlrtorrent: %%n' . shift(@text); # escape % in parameters from irssi - @text = grep { s/%/%%/g } @text; + s/%/%%/g foreach @text; if (defined($output) and ref($output)) { $output->print(sprintf($format, @text), MSGLEVEL_CLIENTCRAP);