- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm
re979da9 rb73ce70 70 70 $BarnOwl::Hooks::mainLoop->add("BarnOwl::Module::Jabber::onMainLoop"); 71 71 $BarnOwl::Hooks::getBuddyList->add("BarnOwl::Module::Jabber::onGetBuddyList"); 72 $BarnOwl::Hooks::getQuickstart->add("BarnOwl::Module::Jabber::onGetQuickstart"); 72 73 $vars{show} = ''; 73 74 BarnOwl::new_variable_bool("jabber:show_offline_buddies", … … 222 223 } 223 224 225 sub onGetQuickstart { 226 return <<'EOF' 227 @b(Jabber:) 228 Type ':jabberlogin @b(username@mit.edu)' to log in to Jabber. The command 229 ':jroster sub @b(somebody@gmail.com)' will request that they let you message 230 them. Once you get a message saying you are subscribed, you can message 231 them by typing ':jwrite @b(somebody@gmail.com)' or just 'j @b(somebody)'. 232 EOF 233 } 234 224 235 ################################################################################ 225 236 ### Owl Commands … … 435 446 436 447 sub cmd_logout { 448 return "You are not logged into jabber." unless ($conn->connected() > 0); 437 449 # Logged into multiple accounts 438 450 if ( $conn->connected() > 1 ) { … … 1112 1124 sub process_presence_subscribed { 1113 1125 my ( $sid, $p ) = @_; 1114 queue_admin_msg("ignoring:".$p->GetXML()) ;1126 queue_admin_msg("ignoring:".$p->GetXML()) if BarnOwl::getvar('jabber:spew') eq 'on'; 1115 1127 # RFC 3921 says we should respond to this with a "subscribe" 1116 1128 # but this causes a flood of sub/sub'd presence packets with … … 1122 1134 sub process_presence_unsubscribed { 1123 1135 my ( $sid, $p ) = @_; 1124 queue_admin_msg("ignoring:".$p->GetXML()) ;1136 queue_admin_msg("ignoring:".$p->GetXML()) if BarnOwl::getvar('jabber:spew') eq 'on'; 1125 1137 # RFC 3921 says we should respond to this with a "subscribe" 1126 1138 # but this causes a flood of unsub/unsub'd presence packets with
Note: See TracChangeset
for help on using the changeset viewer.