Changeset d775050


Ignore:
Timestamp:
Jan 11, 2008, 1:35:56 PM (17 years ago)
Author:
nelhage@mit.edu <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
4cf4067
Parents:
cd17271
Message:
Fix this up slightly
File:
1 edited

Legend:

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

    re54f2fa rd775050  
    3131my $opcode   = "twitter";
    3232
     33# Don't redefine variables if they already exist
     34# This is a workaround for  http://barnowl.mit.edu/trac/ticket/44
     35# Which was fixed in svn r819
    3336if(BarnOwl::getvar('twitter:class') eq '') {
    3437    BarnOwl::new_variable_string('twitter:class',
     
    4952}
    5053
    51 open(my $fh, "<", "$ENV{HOME}/.owl/twitter") || fail("Unable to read ~/.owl/twitter");
     54my $conffile = BarnOwl::get_config_dir() . "/twitter";
     55open(my $fh, "<", "$conffile") || fail("Unable to read $conffile");
    5256my $cfg = do {local $/; <$fh>};
    5357close($fh);
     
    6468
    6569if(!defined($twitter->verify_credentials())) {
    66     fail("Invalid twitter credentials found");
     70    fail("Invalid twitter credentials");
    6771}
    6872
Note: See TracChangeset for help on using the changeset viewer.