Ignore:
Timestamp:
Mar 22, 2007, 11:30:13 AM (18 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1cf32e7d
Parents:
fbd07e9
Message:
Fix outgoing jabber logging.

Added two new perlglue functions:

* log_message - takes a message hash, turns it into an owl message,
and passes it to the logger.

* add_and_log_message - combination off add_message and
log_message. Takes a message hash, turns it into an owl message, logs
it, and adds the same message to the message list if needed. This
exists for convenience, so we don't have to convert the message hash
twice.

Also, took out an extraneous check from logging.c.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/jabber.pl

    rfbd07e9 r3066d23  
    10261026    my $m = j2o( $j, { direction => 'out' } );
    10271027    if ( $vars{jwrite}{type} ne 'groupchat') {
    1028         BarnOwl::add_message($m);
     1028        BarnOwl::add_and_log_message($m);
    10291029    }
    10301030
Note: See TracChangeset for help on using the changeset viewer.