Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm

    re979da9 rb73ce70  
    7070        $BarnOwl::Hooks::mainLoop->add("BarnOwl::Module::Jabber::onMainLoop");
    7171        $BarnOwl::Hooks::getBuddyList->add("BarnOwl::Module::Jabber::onGetBuddyList");
     72        $BarnOwl::Hooks::getQuickstart->add("BarnOwl::Module::Jabber::onGetQuickstart");
    7273        $vars{show} = '';
    7374        BarnOwl::new_variable_bool("jabber:show_offline_buddies",
     
    222223}
    223224
     225sub onGetQuickstart {
     226    return <<'EOF'
     227@b(Jabber:)
     228Type ':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
     230them. Once you get a message saying you are subscribed, you can message
     231them by typing ':jwrite @b(somebody@gmail.com)' or just 'j @b(somebody)'.
     232EOF
     233}
     234
    224235################################################################################
    225236### Owl Commands
     
    435446
    436447sub cmd_logout {
     448    return "You are not logged into jabber." unless ($conn->connected() > 0);
    437449    # Logged into multiple accounts
    438450    if ( $conn->connected() > 1 ) {
     
    11121124sub process_presence_subscribed {
    11131125    my ( $sid, $p ) = @_;
    1114     queue_admin_msg("ignoring:".$p->GetXML());
     1126    queue_admin_msg("ignoring:".$p->GetXML()) if BarnOwl::getvar('jabber:spew') eq 'on';
    11151127    # RFC 3921 says we should respond to this with a "subscribe"
    11161128    # but this causes a flood of sub/sub'd presence packets with
     
    11221134sub process_presence_unsubscribed {
    11231135    my ( $sid, $p ) = @_;
    1124     queue_admin_msg("ignoring:".$p->GetXML());
     1136    queue_admin_msg("ignoring:".$p->GetXML()) if BarnOwl::getvar('jabber:spew') eq 'on';
    11251137    # RFC 3921 says we should respond to this with a "subscribe"
    11261138    # but this causes a flood of unsub/unsub'd presence packets with
Note: See TracChangeset for help on using the changeset viewer.