Changeset 421c286f for logging.c


Ignore:
Timestamp:
Dec 26, 2003, 6:38:28 PM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
8ba37ec
Parents:
ddd02df
Message:
Normalize and downcase aim names before logging
File:
1 edited

Legend:

Unmodified
Added
Removed
  • logging.c

    r2b86d14 r421c286f  
    109109  FILE *file;
    110110  char filename[MAXPATHLEN], *logpath;
    111   char *tobuff;
     111  char *tobuff, *normalto;
    112112
    113113  if (owl_global_get_loggingdirection(&g)==OWL_LOGGING_DIRECTION_IN) return;
    114114
    115   tobuff=owl_sprintf("aim:%s", to);
     115  normalto=owl_aim_normalize_screenname(to);
     116  downstr(normalto);
     117  tobuff=owl_sprintf("aim:%s", normalto);
     118  owl_free(normalto);
    116119
    117120  /* expand ~ in path names */
     
    239242  } else if (owl_message_is_type_aim(m)) {
    240243    /* we do not yet handle chat rooms */
    241     from=frombuff=owl_sprintf("aim:%s", owl_message_get_sender(m));
     244    char *normalto;
     245    normalto=owl_aim_normalize_screenname(owl_message_get_sender(m));
     246    downstr(normalto);
     247    from=frombuff=owl_sprintf("aim:%s", normalto);
     248    owl_free(normalto);
    242249  } else if (owl_message_is_type_loopback(m)) {
    243250    from=frombuff=owl_strdup("loopback");
Note: See TracChangeset for help on using the changeset viewer.