Changeset 3066d23 for logging.c


Ignore:
Timestamp:
Mar 22, 2007, 11:30:13 AM (14 years ago)
Author:
Alejandro R. Sedeño <asedeno@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:
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
  • logging.c

    r5c30091 r3066d23  
    363363  if (owl_message_is_type_zephyr(m)) {
    364364    if (personal) {
    365       if (owl_message_is_type_zephyr(m)) {
    366         from=frombuff=short_zuser(owl_message_get_sender(m));
    367       }
     365      from=frombuff=short_zuser(owl_message_get_sender(m));
    368366    } else {
    369367      from=frombuff=owl_strdup(owl_message_get_class(m));
     
    384382      from=frombuff=owl_sprintf("jabber:%s",owl_message_get_recipient(m));
    385383    }
    386      
    387384  } else {
    388385    from=frombuff=owl_strdup("unknown");
Note: See TracChangeset for help on using the changeset viewer.