- Timestamp:
- Jul 31, 2009, 1:48:38 AM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 5da6ed8
- Parents:
- a8a0b0a
- git-author:
- Kevin Riggle <kevinr@free-dissociation.com> (07/29/09 23:36:40)
- git-committer:
- Kevin Riggle <kevinr@free-dissociation.com> (07/31/09 01:48:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/BarnOwl/Module/Twitter/Handle.pm
ra8a0b0a r0b13bbc 14 14 package BarnOwl::Module::Twitter::Handle; 15 15 16 use Net::Twitter ;16 use Net::Twitter::Lite; 17 17 use HTML::Entities; 18 18 … … 26 26 my $nickname = $self->{cfg}->{account_nickname} || ""; 27 27 die("[Twitter $nickname] Error: $msg\n"); 28 }29 30 my $use_reply_to = 0;31 if($Net::Twitter::VERSION >= 2.06) {32 $use_reply_to = 1;33 28 } 34 29 … … 59 54 my %twitter_args = @_; 60 55 61 $self->{twitter} = Net::Twitter ->new(%twitter_args);56 $self->{twitter} = Net::Twitter::Lite->new(%twitter_args); 62 57 63 58 my $timeline = $self->{twitter}->friends_timeline({count => 1}); … … 186 181 $self->twitter_direct($1, $2); 187 182 } elsif(defined $self->{twitter}) { 188 if( $use_reply_to &&defined($reply_to)) {183 if(defined($reply_to)) { 189 184 $self->{twitter}->update({ 190 185 status => $msg,
Note: See TracChangeset
for help on using the changeset viewer.