Changeset d658c29 for lib/BarnOwl
- Timestamp:
- May 8, 2009, 12:09:02 PM (16 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- a0385ad3
- Parents:
- 188b745
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/BarnOwl/Module/Twitter.pm
r188b745 rd658c29 27 27 my $instance = "status"; 28 28 my $opcode = "twitter"; 29 my $use_reply_to = 0; 29 30 30 31 sub fail { … … 35 36 } 36 37 37 if($Net::Twitter::VERSION < 2.06) { 38 fail("This version of BarnOwl Twitter requires Net::Twitter at least 2.06\n" . 39 "Only $Net::Twitter::VERSION is currently installed.\n"); 38 if($Net::Twitter::VERSION >= 2.06) { 39 $use_reply_to = 1; 40 40 } 41 41 … … 238 238 twitter_direct($1, $2); 239 239 } elsif(defined $twitter) { 240 $twitter->update({ 241 status => $msg, 242 defined($reply_to) ? (in_reply_to_status_id => $reply_to) : () 243 }); 240 if($use_reply_to && defined($reply_to)) { 241 $twitter->update({ 242 status => $msg, 243 in_reply_to_status_id => $reply_to 244 }); 245 } else { 246 $twitter->update($msg); 247 } 244 248 } 245 249 }
Note: See TracChangeset
for help on using the changeset viewer.