From: Dan Boger Date: Wed, 19 Aug 2009 17:20:09 +0000 (-0700) Subject: Make sure N:T has the ua method before calling it X-Git-Url: https://git.sommitrealweird.co.uk/twirssi-net-twitter-lite.git/commitdiff_plain/932c6ef78a41b4e2d08a86ddd3347a9e468c574d?hp=4edf2cd46af41132f0235069bb4c03b09c1a24ca Make sure N:T has the ua method before calling it --- 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); }