Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • logging.c

    r28ee32b rd0961fe  
    155155    to = owl_sprintf("jabber:%s", owl_message_get_recipient(m));
    156156  } else if (owl_message_is_type_aim(m)) {
    157     char *temp2;
    158157    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);
     158    downstr(temp);
     159    to = owl_sprintf("aim:%s", temp);
    162160    owl_free(temp);
    163161  } else {
     
    269267  } else if (owl_message_is_type_aim(m)) {
    270268    /* 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);
     269    char *normalto;
     270    normalto=owl_aim_normalize_screenname(owl_message_get_sender(m));
     271    downstr(normalto);
    274272    from=frombuff=owl_sprintf("aim:%s", normalto);
    275273    owl_free(normalto);
    276     owl_free(temp);
    277274  } else if (owl_message_is_type_loopback(m)) {
    278275    from=frombuff=owl_strdup("loopback");
     
    293290
    294291  ch=frombuff[0];
    295   if (!g_ascii_isalnum(ch)) from="weird";
     292  if (!isalnum(ch)) from="weird";
    296293
    297294  for (i=0; i<len; i++) {
     
    302299
    303300  if (!personal) {
    304     if (strcmp(from, "weird")) {
    305       char* temp = g_utf8_strdown(frombuff, -1);
    306       if (temp) {
    307         owl_free(frombuff);
    308         from = frombuff = temp;
    309       }
    310     }
     301    if (strcmp(from, "weird")) downstr(from);
    311302  }
    312303
Note: See TracChangeset for help on using the changeset viewer.