]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Fix escaping for active_notice.pl when a line starts with a percent sign.
authorDwarf <redacted>
Wed, 20 Jan 2016 21:59:49 +0000 (22:59 +0100)
committerDwarf <redacted>
Wed, 20 Jan 2016 21:59:49 +0000 (22:59 +0100)
scripts/active_notice.pl

index 65293647470dece4eb09a8f9e39ab2d643c68565..876dd9d3d57ac92e6e0da94a54b336351840c981 100644 (file)
@@ -24,7 +24,7 @@ use strict;
 use Irssi;
 use vars qw($VERSION %IRSSI);
 
-$VERSION = "1.07";
+$VERSION = "1.08";
 
 %IRSSI = (
     authors     => 'Geert Hauwaerts',
@@ -33,7 +33,7 @@ $VERSION = "1.07";
     description => 'This script shows notices into the active channel unless it has its own window.',
     license     => 'GNU General Public License',
     url         => 'http://irssi.hauwaerts.be/active_notice.pl',
-    changed     => 'Wed Sep 17 23:00:11 CEST 2003',
+    changed     => 'Wed Jan 20 22:57:37 CEST 2016',
 );
 
 Irssi::theme_register([
@@ -52,6 +52,7 @@ sub notice_move {
 
     return if $witem;
 
+    $text =~ s/%/%%/g;
     $awin->print($text, MSGLEVEL_NOTICES);
   
     Irssi::signal_stop();
git clone https://git.99rst.org/PROJECT