[257] in BarnOwl Developers
[D-O-H] r430 - trunk/owl
daemon@ATHENA.MIT.EDU (aatharuv@MIT.EDU)
Thu Oct 29 18:04:12 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
Date: Sun, 29 Oct 2006 19:35:43 -0500 (EST)
To: dirty-owl-hackers@mit.edu
From: aatharuv@MIT.EDU
Reply-To: dirty-owl-hackers@MIT.EDU
Author: aatharuv
Date: 2006-10-29 19:35:42 -0500 (Sun, 29 Oct 2006)
New Revision: 430
Modified:
trunk/owl/logging.c
Log:
Use from_jid instead of sender for chats
Modified: trunk/owl/logging.c
===================================================================
--- trunk/owl/logging.c 2006-10-30 00:18:30 UTC (rev 429)
+++ trunk/owl/logging.c 2006-10-30 00:35:42 UTC (rev 430)
@@ -456,7 +456,12 @@
fprintf(file, "Time: %s\n\n", owl_message_get_timestr(m));
if (owl_message_is_login(m)) fprintf(file, "LOGIN\n\n");
if (owl_message_is_logout(m)) fprintf(file, "LOGOUT\n\n");
- } else {
+ } else if (owl_message_is_type_jabber(m)) {
+ fprintf(file, "From: <%s> To: <%s>\n",owl_message_get_attribute_value(m,"from_jid"), owl_message_get_recipient(m));
+ fprintf(file, "Time: %s\n\n", owl_message_get_timestr(m));
+ fprintf(file, "%s\n\n",owl_message_get_body(m));
+ }
+ else {
fprintf(file, "From: <%s> To: <%s>\n", owl_message_get_sender(m), owl_message_get_recipient(m));
fprintf(file, "Time: %s\n\n", owl_message_get_timestr(m));
fprintf(file, "%s\n\n", owl_message_get_body(m));