Ignore:
Timestamp:
Jul 22, 2009, 8:39:21 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
a8a0b0a
Parents:
1c45137
Message:
Some code cleanup.

Refactor finding a named account into a find_account function, and set
defaults for config options initially, which lets us remove 'exists'
calls everywhere.
File:
1 edited

Legend:

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

    r82fd1e6 refcd223  
    3434
    3535sub new {
    36 
    3736    my $class = shift;
    3837    my $cfg = shift;
    3938
     39    $cfg = {
     40        account_nickname => '',
     41        default_sender   => 0,
     42        poll_for_tweets  => 1,
     43        poll_for_dms     => 1,
     44        publish_tweets   => 1,
     45        %$cfg
     46       };
     47
    4048    my $self = {
    41         'user' => undef,
    4249        'cfg'  => $cfg,
    4350        'twitter' => undef,
Note: See TracChangeset for help on using the changeset viewer.