Changeset 0cfa6ee


Ignore:
Timestamp:
Dec 22, 2009, 6:37:48 PM (15 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, release-1.10, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
618a980
Parents:
2cca044
git-author:
Alejandro R. Sedeño <asedeno@mit.edu> (12/22/09 11:31:40)
git-committer:
Alejandro R. Sedeño <asedeno@mit.edu> (12/22/09 18:37:48)
Message:
Tweak what jabber messages are displayed

Process and display normal and chat messages if they have a Body or if
jabber:spew is set.
File:
1 edited

Legend:

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

    ra2a5236 r0cfa6ee  
    10371037sub process_incoming_chat_message {
    10381038    my ( $sid, $j ) = @_;
    1039     if ($j->DefinedBody()) {
     1039    if ($j->DefinedBody() || BarnOwl::getvar('jabber:spew') eq 'on') {
    10401040        BarnOwl::queue_message( j2o( $j, { direction => 'in',
    10411041                                           sid => $sid } ) );
     
    10831083    #    }
    10841084    #
    1085     if(BarnOwl::getvar('jabber:spew') eq 'on') {
     1085    if ($j->DefinedBody() || BarnOwl::getvar('jabber:spew') eq 'on') {
    10861086        BarnOwl::queue_message( BarnOwl::Message->new(%jhash) );
    10871087    }
Note: See TracChangeset for help on using the changeset viewer.