Changeset 421c286f


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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rddd02df r421c286f  
    11$Id$
     2
     32.1.4-pre-1
     4        Normalize and downcase AIM names for logging
    25
    362.1.3
  • 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");
  • owl.h

    rddd02df r421c286f  
    2020static const char owl_h_fileIdent[] = "$Id$";
    2121
    22 #define OWL_VERSION         2.1.3
    23 #define OWL_VERSION_STRING "2.1.3"
     22#define OWL_VERSION         2.1.4-pre-1
     23#define OWL_VERSION_STRING "2.1.4-pre-1"
    2424
    2525/* Feature that is being tested to redirect stderr through a pipe.
Note: See TracChangeset for help on using the changeset viewer.