From 72b8880cc3241f5dd386f4407d19abd18b6ecf29 Mon Sep 17 00:00:00 2001 From: Dan Boger Date: Wed, 25 Feb 2009 14:40:35 -0800 Subject: [PATCH] r492 - don't show duplicates from the same file (such as search results/follow overlaps) --- twirssi.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/twirssi.pl b/twirssi.pl index 0ee8ab1..8ab3180 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -12,7 +12,7 @@ $Data::Dumper::Indent = 1; use vars qw($VERSION %IRSSI); $VERSION = "2.1.1beta"; -my ($REV) = '$Rev: 491 $' =~ /(\d+)/; +my ($REV) = '$Rev: 492 $' =~ /(\d+)/; %IRSSI = ( authors => 'Dan Boger', contact => 'zigdon@gmail.com', @@ -21,7 +21,7 @@ my ($REV) = '$Rev: 491 $' =~ /(\d+)/; . 'Can optionally set your bitlbee /away message to same', license => 'GNU GPL v2', url => 'http://twirssi.com', - changed => '$Date: 2009-02-25 10:44:26 -0800 (Wed, 25 Feb 2009) $', + changed => '$Date: 2009-02-25 14:39:58 -0800 (Wed, 25 Feb 2009) $', ); my $window; @@ -868,6 +868,10 @@ sub monitor_child { } if ( not $meta{type} or $meta{type} ne 'searchid' ) { + if ( exists $meta{id} and exists $new_cache{ $meta{id} } ) { + next; + } + $new_cache{ $meta{id} } = time; if ( exists $meta{id} and exists $tweet_cache{ $meta{id} } ) { -- 2.30.2