From 932c6ef78a41b4e2d08a86ddd3347a9e468c574d Mon Sep 17 00:00:00 2001 From: Dan Boger Date: Wed, 19 Aug 2009 10:20:09 -0700 Subject: [PATCH] Make sure N:T has the ua method before calling it --- twirssi.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5