use LWP::Simple;
use Data::Dumper;
use Encode;
+use POSIX qw/:sys_wait_h/;
$Data::Dumper::Indent = 1;
use vars qw($VERSION %IRSSI);
if &debug;
my ($new_last_poll);
+ # reap any random leftover processes - work around a bug in irssi on gentoo
+ waitpid(-1, WNOHANG);
+
# first time we run we don't want to print out *everything*, so we just
# pretend
my $text = decode_entities( $tweet->{text} );
if ( $tweet->{truncated} ) {
if ( exists $tweet->{retweeted_status} ) {
- $text = "RT $tweet->{retweeted_status}{user}{screen_name}: "
+ $text = "RT \@$tweet->{retweeted_status}{user}{screen_name}: "
. "$tweet->{retweeted_status}{text}";
} elsif ( $object->isa('Net::Twitter') ) {
$text .= " -- http://twitter.com/$tweet->{user}{screen_name}"