Changeset 5c30091 for logging.c


Ignore:
Timestamp:
Mar 2, 2007, 9:28:55 PM (14 years ago)
Author:
Sam Hartman <hartmans@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:
94cb84ff
Parents:
d524c83
Message:
* groupchat  logged by recipient not by sender.
* update to use a sender that we actually have.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • logging.c

    rd857b66 r5c30091  
    379379    from=frombuff=owl_strdup("loopback");
    380380  } else if (owl_message_is_type_jabber(m)) {
    381         from=frombuff=owl_sprintf("jabber:%s",owl_message_get_sender(m));
     381    if (personal) {
     382      from=frombuff=owl_sprintf("jabber:%s",owl_message_get_sender(m));
     383    } else {
     384      from=frombuff=owl_sprintf("jabber:%s",owl_message_get_recipient(m));
     385    }
     386     
    382387  } else {
    383388    from=frombuff=owl_strdup("unknown");
     
    455460    if (owl_message_is_logout(m)) fprintf(file, "LOGOUT\n\n");
    456461  } else if (owl_message_is_type_jabber(m)) {
    457     fprintf(file, "From: <%s> To: <%s>\n",owl_message_get_attribute_value(m,"from_jid"), owl_message_get_recipient(m));
     462    fprintf(file, "From: <%s> To: <%s>\n",owl_message_get_sender(m), owl_message_get_recipient(m));
    458463    fprintf(file, "Time: %s\n\n", owl_message_get_timestr(m));
    459464    fprintf(file, "%s\n\n",owl_message_get_body(m));
Note: See TracChangeset for help on using the changeset viewer.