X-Git-Url: https://git.sommitrealweird.co.uk/twirssi-net-twitter-lite.git/blobdiff_plain/4edf2cd46af41132f0235069bb4c03b09c1a24ca..932c6ef78a41b4e2d08a86ddd3347a9e468c574d:/twirssi.pl diff --git a/twirssi.pl b/twirssi.pl index 331715c..1adc317 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -504,7 +504,7 @@ sub cmd_login { return; } - if ( my $timeout = Irssi::settings_get_int("twitter_timeout") ) { + if ( my $timeout = Irssi::settings_get_int("twitter_timeout") and $twit->can('ua')) { $twit->ua->timeout($timeout); }