Make sure N:T has the ua method before calling it
authorDan Boger <zigdon@irc.peeron.com>
Wed, 19 Aug 2009 17:20:09 +0000 (10:20 -0700)
committerDan Boger <zigdon@irc.peeron.com>
Wed, 19 Aug 2009 17:20:09 +0000 (10:20 -0700)
twirssi.pl

index 331715c..1adc317 100644 (file)
@@ -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);
     }