X-Git-Url: https://git.sommitrealweird.co.uk/twirssi-net-twitter-lite.git/blobdiff_plain/05dd541f6041ec3d770784c6dbac3db9309b0e8c..fba0149c813536b122cefc924a4694d615fe1891:/twirssi.pl diff --git a/twirssi.pl b/twirssi.pl index b0e3106..e4822c0 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -518,13 +518,13 @@ sub cmd_login { { $twit = Net::Twitter->new( identica => 1, - traits => [ 'API::REST' ], + traits => [ 'API::REST', 'API::Search' ], source => "twirssi", ssl => !Irssi::settings_get_bool("twirssi_avoid_ssl"), ); } else { $twit = Net::Twitter->new( - traits => [ 'API::REST', 'OAuth' ], + traits => [ 'API::REST', 'OAuth', 'API::Search' ], consumer_key => 'BZVAvBma4GxdiRwXIvbnw', consumer_secret => '0T5kahwLyb34vciGZsgkA9lsjtGCQ05vxVE2APXM', @@ -955,7 +955,8 @@ sub load_friends { }; 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; } @@ -1845,11 +1846,11 @@ Irssi::settings_add_str( "twirssi", "twirssi_topic_color", "%r" ); 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 );