From: Dwarf Date: Wed, 20 Jan 2016 21:59:49 +0000 (+0100) Subject: [active_notice] Fix escaping X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=55332cac558798c6d578150f73cb287500f4cb48;p=irssi-scripts.irssi.org.git [active_notice] Fix escaping --- diff --git a/scripts/active_notice.pl b/scripts/active_notice.pl index 04f5561..7a851a6 100644 --- a/scripts/active_notice.pl +++ b/scripts/active_notice.pl @@ -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 ) + ## + $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});