);
} else {
$twit = Net::Twitter->new(
- traits => [ 'API::REST', 'OAuth', 'API::Search' ],
+ traits => [ 'API::REST', 'OAuth', 'API::Search' ],
consumer_key => 'BZVAvBma4GxdiRwXIvbnw',
consumer_secret =>
'0T5kahwLyb34vciGZsgkA9lsjtGCQ05vxVE2APXM',
};
if ($@) {
- print $fh "type:debug Error during friends list update. Aborted.\n";
+ print $fh "type:debug Error during friends list update. Aborted.\n"
+ if $fh;
return;
}
Irssi::settings_add_str( "twirssi", "twirssi_retweet_format",
'RT $n: "$t" ${-- $c$}' );
Irssi::settings_add_str( "twirssi", "twirssi_location",
- "$ENV{HOME}/.irssi/scripts/twirssi.pl" );
+ Irssi::get_irssi_dir . "/.irssi/scripts/twirssi.pl" );
Irssi::settings_add_str( "twirssi", "twirssi_replies_store",
- "$ENV{HOME}/.irssi/scripts/twirssi.json" );
+ Irssi::get_irssi_dir . "/.irssi/scripts/twirssi.json" );
Irssi::settings_add_str( "twirssi", "twirssi_oauth_store",
- "$ENV{HOME}/.irssi/scripts/twirssi.oauth" );
+ Irssi::get_irssi_dir . "/.irssi/scripts/twirssi.oauth" );
Irssi::settings_add_int( "twirssi", "twitter_friends_poll", 600 );
Irssi::settings_add_int( "twirssi", "twitter_timeout", 30 );