Changeset d775050
- Timestamp:
- Jan 11, 2008, 1:35:56 PM (17 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 4cf4067
- Parents:
- cd17271
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/BarnOwl/Module/Twitter.pm
re54f2fa rd775050 31 31 my $opcode = "twitter"; 32 32 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 33 36 if(BarnOwl::getvar('twitter:class') eq '') { 34 37 BarnOwl::new_variable_string('twitter:class', … … 49 52 } 50 53 51 open(my $fh, "<", "$ENV{HOME}/.owl/twitter") || fail("Unable to read ~/.owl/twitter"); 54 my $conffile = BarnOwl::get_config_dir() . "/twitter"; 55 open(my $fh, "<", "$conffile") || fail("Unable to read $conffile"); 52 56 my $cfg = do {local $/; <$fh>}; 53 57 close($fh); … … 64 68 65 69 if(!defined($twitter->verify_credentials())) { 66 fail("Invalid twitter credentials found");70 fail("Invalid twitter credentials"); 67 71 } 68 72
Note: See TracChangeset
for help on using the changeset viewer.