From: Dan Boger Date: Wed, 4 Feb 2009 07:49:36 +0000 (-0800) Subject: r453 - When getting a search result back, take that id as the new minimum. Not sure... X-Git-Url: https://git.sommitrealweird.co.uk/twirssi-net-twitter-lite.git/commitdiff_plain/111237671b16cc01aea7d3239fb31a3da040ff88?ds=sidebyside;hp=5c590e8510d34cf0afe10493788f064f3f9816ec 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. --- 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, [