Changeset cd9182d for logging.c


Ignore:
Timestamp:
Oct 29, 2006, 7:35:42 PM (14 years ago)
Author:
Arun A. Tharuvai <aatharuv@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:
f8b42ac
Parents:
2182be3
Message:
Use from_jid instead of sender for chats
File:
1 edited

Legend:

Unmodified
Added
Removed
  • logging.c

    r2182be3 rcd9182d  
    457457    if (owl_message_is_login(m)) fprintf(file, "LOGIN\n\n");
    458458    if (owl_message_is_logout(m)) fprintf(file, "LOGOUT\n\n");
    459   } else {
     459  } else if (owl_message_is_type_jabber(m)) {
     460    fprintf(file, "From: <%s> To: <%s>\n",owl_message_get_attribute_value(m,"from_jid"), owl_message_get_recipient(m));
     461    fprintf(file, "Time: %s\n\n", owl_message_get_timestr(m));
     462    fprintf(file, "%s\n\n",owl_message_get_body(m));
     463  }
     464  else {
    460465    fprintf(file, "From: <%s> To: <%s>\n", owl_message_get_sender(m), owl_message_get_recipient(m));
    461466    fprintf(file, "Time: %s\n\n", owl_message_get_timestr(m));
Note: See TracChangeset for help on using the changeset viewer.