Ignore:
Timestamp:
Sep 20, 2011, 11:15:31 PM (13 years ago)
Author:
Edward Z. Yang <ezyang@mit.edu>
Branches:
master, release-1.10, release-1.9
Children:
99f0a77
Parents:
460413f
git-author:
Edward Z. Yang <ezyang@mit.edu> (06/19/11 22:56:52)
git-committer:
Edward Z. Yang <ezyang@mit.edu> (09/20/11 23:15:31)
Message:
Add facebook-poll command and be more consistent about poll invoke.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Location:
perl/modules/Facebook/lib/BarnOwl/Module
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/Facebook/lib/BarnOwl/Module/Facebook.pm

    r24bd860 r3199d8e  
    113113});
    114114
     115BarnOwl::new_command('facebook-poll' => \&cmd_facebook_poll, {
     116    summary     => 'Force a poll of Facebook.',
     117    usage       => 'facebook-poll',
     118    description => 'Get updates from Facebook.'
     119});
     120
    115121# XXX: UI: probably should bug out immediately if we're not logged in.
    116122
     
    132138}
    133139
     140sub cmd_facebook_poll {
     141    my $cmd = shift;
     142
     143    $facebook_handle->sleep(0);
     144    return;
     145}
     146
    134147sub cmd_facebook_auth {
    135148    my $cmd = shift;
  • perl/modules/Facebook/lib/BarnOwl/Module/Facebook/Handle.pm

    r460413f r3199d8e  
    258258    }
    259259    $self->{facebook}->add_post->set_message( $msg )->publish;
    260     $self->poll_facebook;
     260    $self->sleep(0);
    261261}
    262262
     
    268268
    269269    $self->{facebook}->add_comment( $postid )->set_message( $msg )->publish;
    270     $self->poll_facebook;
     270    $self->sleep(0);
    271271}
    272272
Note: See TracChangeset for help on using the changeset viewer.