- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm
r81312e4 r879e7e94 25 25 use Net::DNS; 26 26 use Getopt::Long; 27 28 use utf8;29 27 30 28 our $VERSION = 0.1; … … 137 135 } 138 136 137 our $showOffline = 0; 138 139 139 sub blist_listBuddy { 140 140 my $roster = shift; … … 152 152 $blistStr .= " [" . ( $rq{show} ? $rq{show} : 'online' ) . "]"; 153 153 $blistStr .= " " . $rq{status} if $rq{status}; 154 $blistStr = BarnOwl::Style::boldify($blistStr) ;154 $blistStr = BarnOwl::Style::boldify($blistStr) if $showOffline; 155 155 } 156 156 else { 157 return '' if (BarnOwl::getvar('jabber:show_offline_buddies') eq 'off');157 return '' unless $showOffline; 158 158 if ($jq{ask}) { 159 159 $blistStr .= " [pending]"; … … 198 198 199 199 sub onGetBuddyList { 200 $showOffline = BarnOwl::getvar('jabber:show_offline_buddies') eq 'on'; 200 201 my $blist = ""; 201 202 foreach my $jid ($conn->getJIDs()) { … … 375 376 $vars{jlogin_havepass} = 1; 376 377 $conn->removeConnection($jidStr); 377 BarnOwl::start_password( "Password for $jidStr: ", \&do_login );378 BarnOwl::start_password( "Password for $jidStr: ", \&do_login ); 378 379 return ""; 379 380 } … … 479 480 } 480 481 else { 481 $to = shift @ARGV;482 $to = shift @ARGV; 482 483 } 483 484 … … 523 524 $cmd .= " -t $jwrite_thread" if $jwrite_thread; 524 525 $cmd .= " -s $jwrite_subject" if $jwrite_subject; 525 526 BarnOwl::start_edit_win($cmd, \&process_owl_jwrite ); 526 BarnOwl::start_edit_win( $cmd, \&process_owl_jwrite ); 527 527 } 528 528
Note: See TracChangeset
for help on using the changeset viewer.