- Timestamp:
- May 31, 2008, 11:40:29 PM (16 years ago)
- Branches:
- barnowl_perlaim
- Children:
- 7a1c90d
- Parents:
- b1fd36e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
logging.c
ree310eb rc453ada 87 87 } 88 88 89 void owl_log_aim(owl_message *m, FILE *file) {90 fprintf(file, "From: <%s> To: <%s>\n", owl_message_get_sender(m), owl_message_get_recipient(m));91 fprintf(file, "Time: %s\n\n", owl_message_get_timestr(m));92 if (owl_message_is_login(m))93 fprintf(file, "LOGIN\n\n");94 else if (owl_message_is_logout(m))95 fprintf(file, "LOGOUT\n\n");96 else97 fprintf(file, "%s\n\n", owl_message_get_body(m));98 }99 100 89 void owl_log_jabber(owl_message *m, FILE *file) { 101 90 fprintf(file, "From: <%s> To: <%s>\n",owl_message_get_sender(m), owl_message_get_recipient(m)); … … 121 110 } else if (owl_message_is_type_jabber(m)) { 122 111 owl_log_jabber(m, file); 123 } else if (owl_message_is_type_aim(m)) {124 owl_log_aim(m, file);125 112 } else { 126 113 owl_log_generic(m, file); … … 154 141 } else if (owl_message_is_type_jabber(m)) { 155 142 to = owl_sprintf("jabber:%s", owl_message_get_recipient(m)); 156 } else if (owl_message_is_type_aim(m)) {157 char *temp2;158 temp = owl_aim_normalize_screenname(owl_message_get_recipient(m));159 temp2 = g_utf8_strdown(temp,-1);160 to = owl_sprintf("aim:%s", temp2);161 owl_free(temp2);162 owl_free(temp);163 143 } else { 164 144 to = owl_sprintf("loopback"); … … 267 247 from=frombuff=owl_strdup(owl_message_get_class(m)); 268 248 } 269 } else if (owl_message_is_type_aim(m)) {270 /* we do not yet handle chat rooms */271 char *normalto, *temp;272 temp = owl_aim_normalize_screenname(owl_message_get_sender(m));273 normalto = g_utf8_strdown(temp, -1);274 from=frombuff=owl_sprintf("aim:%s", normalto);275 owl_free(normalto);276 owl_free(temp);277 249 } else if (owl_message_is_type_loopback(m)) { 278 250 from=frombuff=owl_strdup("loopback");
Note: See TracChangeset
for help on using the changeset viewer.