Changeset 8af89a7


Ignore:
Timestamp:
May 28, 2008, 1:26:36 PM (13 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b441079
Parents:
4367915
Message:
Add a jabber:spew variable that controls whether unrecognized Jabber
messages (such as pubsub requests) are displayed.
File:
1 edited

Legend:

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

    rdb0ac7e r8af89a7  
    7474                                   { default => 1,
    7575                                     summary => 'Show offline or pending buddies.'});
     76        BarnOwl::new_variable_bool("jabber:spew",
     77                                   { default => 0,
     78                                     summary => 'Display unrecognized Jabber messages.'});
    7679        BarnOwl::new_variable_int("jabber:auto_away_timeout",
    7780                                  { default => 5,
     
    974977    #    }
    975978    #
    976     BarnOwl::queue_message( BarnOwl::Message->new(%jhash) );
     979    if(BarnOwl::getvar('jabber:spew') eq 'on') {
     980        BarnOwl::queue_message( BarnOwl::Message->new(%jhash) );
     981    }
    977982}
    978983
Note: See TracChangeset for help on using the changeset viewer.