use constant { DEBUG => 0 };
$VERSION = "1.1";
-my ($REV) = '$Rev: 302 $' =~ /(\d+)/;
+my ($REV) = '$Rev: 303 $' =~ /(\d+)/;
%IRSSI = (
authors => 'Dan Boger',
contact => 'zigdon@gmail.com',
¬ice("Logged in as $user, loading friends list...");
&load_friends;
¬ice( "loaded friends: ", scalar keys %nicks );
+ %nicks = %friends;
$nicks{$user} = 0;
&get_updates;
} else {
while (1) {
my $friends = $twit->friends( { page => $page } );
last unless $friends;
- $new_friends{ $_->{screen_name} } = $nicks{ $_->{screen_name} } = time
+ $new_friends{ $_->{screen_name} } = time
foreach @$friends;
$page++;
last if @$friends == 0 or $page == 10;
last;
}
my ($f, $t) = split ' ', $_;
- $friends{$f} = $t;
+ $nicks{$f} = $friends{$f} = $t;
}
print "new last_poll = $last_poll" if DEBUG;