Changeset c453ada for logging.c


Ignore:
Timestamp:
May 31, 2008, 11:40:29 PM (16 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
barnowl_perlaim
Children:
7a1c90d
Parents:
b1fd36e
Message:
Remove aim.c. buddylist.c, buddy.c, libfaim, and everything that uses them.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • logging.c

    ree310eb rc453ada  
    8787}
    8888
    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     else
    97         fprintf(file, "%s\n\n", owl_message_get_body(m));
    98 }
    99 
    10089void owl_log_jabber(owl_message *m, FILE *file) {
    10190    fprintf(file, "From: <%s> To: <%s>\n",owl_message_get_sender(m), owl_message_get_recipient(m));
     
    121110    } else if (owl_message_is_type_jabber(m)) {
    122111        owl_log_jabber(m, file);
    123     } else if (owl_message_is_type_aim(m)) {
    124         owl_log_aim(m, file);
    125112    } else {
    126113        owl_log_generic(m, file);
     
    154141  } else if (owl_message_is_type_jabber(m)) {
    155142    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);
    163143  } else {
    164144    to = owl_sprintf("loopback");
     
    267247      from=frombuff=owl_strdup(owl_message_get_class(m));
    268248    }
    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);
    277249  } else if (owl_message_is_type_loopback(m)) {
    278250    from=frombuff=owl_strdup("loopback");
Note: See TracChangeset for help on using the changeset viewer.