git://git.camperquake.de
/
xmlrtorrent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix % escaping
[xmlrtorrent.git]
/
xmlrtorrent.pl
diff --git
a/xmlrtorrent.pl
b/xmlrtorrent.pl
index
7adc01f
..
c2d823c
100644
(file)
--- a/
xmlrtorrent.pl
+++ b/
xmlrtorrent.pl
@@
-97,7
+97,7
@@
sub write_irssi {
my $format = '%%mxmlrtorrent: %%n' . shift(@text);
# escape % in parameters from 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);
if (defined($output) and ref($output)) {
$output->print(sprintf($format, @text), MSGLEVEL_CLIENTCRAP);