Changeset 79a0e82


Ignore:
Timestamp:
Jun 24, 2003, 9:22:16 AM (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:
723c427
Parents:
9c4ec91
Message:
Fixed personal aim messages logging to class directory
Log "LOGIN" or "LOGOUT" for AIM buddy messages message
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    ra6560fe r79a0e82  
    1616        A style is now part of a view, the view command has been revamped
    1717        Bug fix in owl_regex
     18        Fixed personal aim messages logging to class directory
     19        Log "LOGIN" or "LOGOUT" for AIM buddy messages message
    1820
    19212.0.4-pre-1
  • logging.c

    rd559df9 r79a0e82  
    114114    }
    115115  } else {
    116     if (owl_message_is_private(m)) {
     116    if (owl_message_is_private(m) || owl_message_is_loginout(m)) {
    117117      personal=1;
    118118      if (!owl_global_is_logging(&g)) return;
     
    186186    if (!allfile) {
    187187      owl_function_makemsg("Unable to open file for incoming logging");
     188      fclose(file);
    188189      return;
    189190    }
     
    203204    fprintf(file, "From: %s <%s>\n\n", buff, tmp);
    204205    fprintf(file, "%s\n", owl_message_get_body(m));
    205   } else if (owl_message_is_type_aim(m)) {
     206  } else if (owl_message_is_type_aim(m) && !owl_message_is_loginout(m)) {
    206207    fprintf(file, "From: <%s> To: <%s>\n", owl_message_get_sender(m), owl_message_get_recipient(m));
    207208    fprintf(file, "Time: %s\n\n", owl_message_get_timestr(m));
    208209    fprintf(file, "%s\n\n", owl_message_get_body(m));
     210  } else if (owl_message_is_type_aim(m) && owl_message_is_loginout(m)) {
     211    fprintf(file, "From: <%s> To: <%s>\n", owl_message_get_sender(m), owl_message_get_recipient(m));
     212    fprintf(file, "Time: %s\n\n", owl_message_get_timestr(m));
     213    if (owl_message_is_login(m)) fprintf(file, "LOGIN\n\n");
     214    if (owl_message_is_logout(m)) fprintf(file, "LOGOUT\n\n");
    209215  }
    210216  fclose(file);
     
    219225      fprintf(allfile, "From: %s <%s>\n\n", buff, tmp);
    220226      fprintf(allfile, "%s\n", owl_message_get_body(m));
    221       fclose(allfile);
    222     } else {
    223       fprintf(file, "From: <%s> To: <%s>\n", owl_message_get_sender(m), owl_message_get_recipient(m));
    224       fprintf(file, "Time: %s\n\n", owl_message_get_timestr(m));
    225       fprintf(file, "%s\n\n", owl_message_get_body(m));
    226     }
    227   }
     227    } else if (owl_message_is_type_aim(m) && !owl_message_is_loginout(m)) {
     228      fprintf(allfile, "From: <%s> To: <%s>\n", owl_message_get_sender(m), owl_message_get_recipient(m));
     229      fprintf(allfile, "Time: %s\n\n", owl_message_get_timestr(m));
     230      fprintf(allfile, "%s\n\n", owl_message_get_body(m));
     231    } else if (owl_message_is_type_aim(m) && owl_message_is_loginout(m)) {
     232      fprintf(allfile, "From: <%s> To: <%s>\n", owl_message_get_sender(m), owl_message_get_recipient(m));
     233      fprintf(allfile, "Time: %s\n\n", owl_message_get_timestr(m));
     234      if (owl_message_is_login(m)) fprintf(allfile, "LOGIN\n\n");
     235      if (owl_message_is_logout(m)) fprintf(allfile, "LOGOUT\n\n");
     236    }
     237  }
     238  fclose(allfile);
    228239
    229240  if (owl_message_is_type_zephyr(m)) {
Note: See TracChangeset for help on using the changeset viewer.