Ignore:
Timestamp:
Jul 31, 2009, 1:48:38 AM (12 years ago)
Author:
Kevin Riggle <kevinr@free-dissociation.com>
Branches:
master, 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)
Message:
Switch from Net::Twitter to Net::Twitter::Lite
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/BarnOwl/Module/Twitter/Handle.pm

    ra8a0b0a r0b13bbc  
    1414package BarnOwl::Module::Twitter::Handle;
    1515
    16 use Net::Twitter;
     16use Net::Twitter::Lite;
    1717use HTML::Entities;
    1818
     
    2626    my $nickname = $self->{cfg}->{account_nickname} || "";
    2727    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;
    3328}
    3429
     
    5954    my %twitter_args = @_;
    6055
    61     $self->{twitter}  = Net::Twitter->new(%twitter_args);
     56    $self->{twitter}  = Net::Twitter::Lite->new(%twitter_args);
    6257
    6358    my $timeline = $self->{twitter}->friends_timeline({count => 1});
     
    186181        $self->twitter_direct($1, $2);
    187182    } elsif(defined $self->{twitter}) {
    188         if($use_reply_to && defined($reply_to)) {
     183        if(defined($reply_to)) {
    189184            $self->{twitter}->update({
    190185                status => $msg,
Note: See TracChangeset for help on using the changeset viewer.