Changeset 706ff88 for lib


Ignore:
Timestamp:
Feb 25, 2009, 9:52:16 PM (16 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
cdb546f
Parents:
c1e5316
Message:
Make Twitter.pm deal better if you've never received a tweet.

If you had never received a tweet (or, more likely, a direct message),
we were spew "unitialized" warnings every second until you got one.
File:
1 edited

Legend:

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

    rc1e5316 r706ff88  
    128128        $last_id = $twitter->friends_timeline({count => 1})->[0]{id};
    129129    };
     130    $last_id = 0 unless defined($last_id);
    130131}
    131132
     
    134135        $last_direct = $twitter->direct_messages()->[0]{id};
    135136    };
     137    $last_direct = 0 unless defined($last_direct);
    136138}
    137139
Note: See TracChangeset for help on using the changeset viewer.