git://git.camperquake.de
/
xmlrtorrent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b3e74e
)
fix % escaping
author
Christian Garbs
<mitch@cgarbs.de>
Sun, 28 Dec 2008 12:45:57 +0000
(13:45 +0100)
committer
Christian Garbs
<mitch@cgarbs.de>
Sun, 28 Dec 2008 12:45:57 +0000
(13:45 +0100)
xmlrtorrent.pl
patch
|
blob
|
history
diff --git
a/xmlrtorrent.pl
b/xmlrtorrent.pl
index
3a93181
..
6914eb4
100644
(file)
--- 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);