1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Update to 10.0!

Thanks to author for incorporating my changes and to edwin@'s script
for pointing me at this update.
This commit is contained in:
Alfred Perlstein 2005-10-04 22:11:10 +00:00
parent 7d38b507de
commit c73487607a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=144206
3 changed files with 4 additions and 46 deletions

View File

@ -6,8 +6,8 @@
#
PORTNAME= insub
PORTVERSION= 9.8
PORTREVISION= 1
PORTVERSION= 10.0
#PORTREVISION= 1
CATEGORIES= irc
MASTER_SITES= http://gruntle.org/projects/irssi/insub/

View File

@ -1,2 +1,2 @@
MD5 (insub-9.8.tar.bz2) = 0e5adddaf68e3ac4ef0bae166d254ffc
SIZE (insub-9.8.tar.bz2) = 42297
MD5 (insub-10.0.tar.bz2) = 784d868626e046a1a5c5f83b46cee488
SIZE (insub-10.0.tar.bz2) = 45254

View File

@ -1,42 +0,0 @@
--- insub.old Wed May 11 00:33:48 2005
+++ insub.pl Wed May 11 00:33:51 2005
@@ -364,19 +364,24 @@
$text =~ s/</&lt;/g;
$text =~ s/>/&gt;/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 @@
}
+ $| = 1 if ($throttle);
foreach my $line (split(/\n/, $text)) {
if ($CONTEXT eq 'irssi') {
$cmd = "msg $sendto" unless $cmd;