]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
[active_notice] Fix escaping
authorDwarf <redacted>
Wed, 20 Jan 2016 21:59:49 +0000 (22:59 +0100)
committerbw1 <redacted>
Fri, 27 Jul 2018 09:20:47 +0000 (11:20 +0200)
scripts/active_notice.pl

index 04f55611315abd119f5e35eb1614a5c448a38acb..7a851a6436347f64dd4b855d63b43e058c65a435 100644 (file)
@@ -58,7 +58,7 @@ use vars qw($VERSION %IRSSI);
 # Declare the administrative information.
 ##
 
-$VERSION = '15.01.01';
+$VERSION = '18.01.01';
 
 %IRSSI = (
     authors     => 'Geert Hauwaerts',
@@ -67,7 +67,7 @@ $VERSION = '15.01.01';
     description => 'This script shows incoming notices into the active channel.',
     license     => 'GNU General Public License',
     url         => 'https://github.com/GeertHauwaerts/irssi-scripts/blob/master/src/active_notice.pl',
-    changed     => 'Thu Jun 25 20:46:51 UTC 2015',
+    changed     => '2018-07-27',
 );
 
 
@@ -136,7 +136,12 @@ sub notice_move {
             return;
         }
         
+        ##
+        # replace a single % with %%. (by  Dwarf <dwarf@rizon.net>) 
+        ##
         
+               $text =~ s/%/%%/g;
+
         ##
         # Print the notice in the active window.
         ###
@@ -199,4 +204,4 @@ Irssi::settings_add_bool('active_notice', 'active_notice_show_in_status_window',
 # Display the script banner.
 ##
 
-Irssi::printformat(MSGLEVEL_CLIENTCRAP, 'active_notice_loaded', $IRSSI{name}, $VERSION, $IRSSI{authors});
\ No newline at end of file
+Irssi::printformat(MSGLEVEL_CLIENTCRAP, 'active_notice_loaded', $IRSSI{name}, $VERSION, $IRSSI{authors});
git clone https://git.99rst.org/PROJECT