Changeset 4cf4067
- Timestamp:
- Mar 6, 2008, 12:53:45 PM (17 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 30f0680
- Parents:
- d775050
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/BarnOwl/Module/Twitter.pm
rd775050 r4cf4067 23 23 my $msg = shift; 24 24 BarnOwl::admin_message('Twitter Error', $msg); 25 die ;25 die("Twitter Error: $msg\n"); 26 26 } 27 27 … … 32 32 33 33 # Don't redefine variables if they already exist 34 # This is a workaround for 34 # This is a workaround for http://barnowl.mit.edu/trac/ticket/44 35 35 # Which was fixed in svn r819 36 36 if(BarnOwl::getvar('twitter:class') eq '') { … … 88 88 } 89 89 90 BarnOwl::new_command(twitter => \&cmd_twitter, { 91 summary => 'Update Twitter from BarnOwl', 92 usage => 'twitter [message]', 93 description => 'Update Twitter. If MESSAGE is provided, use it as your status.' 94 . "\nOtherwise, prompt for a status message to use." 95 }); 96 97 sub cmd_twitter { 98 my $cmd = shift; 99 if(@_) { 100 my $status = join(" ", @_); 101 twitter($status); 102 } else { 103 BarnOwl::start_edit_win('What are you doing?', \&twitter); 104 } 105 } 106 90 107 $BarnOwl::Hooks::receiveMessage->add(\&handle_message); 91 108
Note: See TracChangeset
for help on using the changeset viewer.