diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2005-05-16 16:22:45 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2005-05-16 16:22:45 +0000 |
commit | 06e1ba470c04d9bb4a161d0f0242c1c476b37508 (patch) | |
tree | 88f65f51abe43514f011deaeeba85a4fca74a65e /irc | |
parent | f12aae60dead0b61a4c4a1467efce123644ccba5 (diff) | |
download | ports-06e1ba470c04d9bb4a161d0f0242c1c476b37508.tar.gz ports-06e1ba470c04d9bb4a161d0f0242c1c476b37508.zip |
Notes
Diffstat (limited to 'irc')
-rw-r--r-- | irc/insub/Makefile | 2 | ||||
-rw-r--r-- | irc/insub/files/patch-throttle | 38 |
2 files changed, 36 insertions, 4 deletions
diff --git a/irc/insub/Makefile b/irc/insub/Makefile index 65a57ebc77f4..c5755ca9e421 100644 --- a/irc/insub/Makefile +++ b/irc/insub/Makefile @@ -7,7 +7,7 @@ PORTNAME= insub PORTVERSION= 9.8 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= irc MASTER_SITES= http://gruntle.org/projects/irssi/insub/ diff --git a/irc/insub/files/patch-throttle b/irc/insub/files/patch-throttle index 1df58fde2cfc..8084fa646771 100644 --- a/irc/insub/files/patch-throttle +++ b/irc/insub/files/patch-throttle @@ -1,6 +1,38 @@ ---- insub.old Tue Feb 22 22:53:08 2005 -+++ insub.pl Tue Feb 22 22:54:22 2005 -@@ -916,6 +916,7 @@ +--- insub.old Wed May 11 00:33:48 2005 ++++ insub.pl Wed May 11 00:33:51 2005 +@@ -364,19 +364,24 @@ + $text =~ s/</</g; + $text =~ s/>/>/g; + +- if (defined($prev_bg_color) && $bg_col == $prev_bg_color && +- defined($prev_fg_color) && $fg_col == $prev_fg_color) { +- $ret = $text; ++ if ((defined($prev_bg_color) && $bg_col != $prev_bg_color) || ++ (defined($prev_fg_color) && $fg_col != $prev_fg_color)) { ++ $ret .= qq(</span>); ++ } ++ ++ if ((defined($prev_bg_color) && $bg_col == $prev_bg_color) && ++ (defined($prev_fg_color) && $fg_col == $prev_fg_color)) { ++ $ret .= $text; + } elsif ($bg_col == 1) { + # black is assumed because of a div taggy +- $ret = sprintf( +- qq(<span style="color:%s;">%s</span>), ++ $ret .= sprintf( ++ qq(<span style="color:%s;">%s), + $html_map->{$fg_col}, + $text, + ); + } else { +- $ret = sprintf( +- qq(<span style="color:%s;background-color:%s;">%s</span>), ++ $ret .= sprintf( ++ qq(<span style="color:%s;background-color:%s;">%s), + $html_map->{$fg_col}, + $html_map->{$bg_col}, + $text, +@@ -916,6 +921,7 @@ } |