From 111237671b16cc01aea7d3239fb31a3da040ff88 Mon Sep 17 00:00:00 2001 From: Dan Boger Date: Tue, 3 Feb 2009 23:49:36 -0800 Subject: [PATCH] r453 - When getting a search result back, take that id as the new minimum. Not sure why the searchid one isn't getting through though. --- twirssi.pl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/twirssi.pl b/twirssi.pl index 757cb70..b8a0f4a 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -12,7 +12,7 @@ $Data::Dumper::Indent = 1; use vars qw($VERSION %IRSSI); $VERSION = "2.0.2"; -my ($REV) = '$Rev: 452 $' =~ /(\d+)/; +my ($REV) = '$Rev: 453 $' =~ /(\d+)/; %IRSSI = ( authors => 'Dan Boger', contact => 'zigdon@gmail.com', @@ -21,7 +21,7 @@ my ($REV) = '$Rev: 452 $' =~ /(\d+)/; . 'Can optionally set your bitlbee /away message to same', license => 'GNU GPL v2', url => 'http://twirssi.com', - changed => '$Date: 2009-02-03 10:38:51 -0800 (Tue, 03 Feb 2009) $', + changed => '$Date: 2009-02-03 23:48:19 -0800 (Tue, 03 Feb 2009) $', ); my $window; @@ -889,6 +889,12 @@ sub monitor_child { $meta{type}, $account, $meta{topic}, $meta{nick}, $marker, $_ ]; + if ( $meta{id} >= + $id_map{__searches}{ $meta{account} }{ $meta{topic} } ) + { + $id_map{__searches}{ $meta{account} }{ $meta{topic} } = + $meta{id}; + } } elsif ( $meta{type} eq 'dm' ) { push @lines, [ -- 2.30.2