Changeset eec69e1


Ignore:
Timestamp:
Oct 26, 2003, 12:41:38 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:
25dd31a
Parents:
37eab7f
Message:
Fixed bug in loopback logging
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r37eab7f reec69e1  
    460460  m=owl_malloc(sizeof(owl_message));
    461461  owl_message_create_loopback(m, owl_editwin_get_text(owl_global_get_typwin(&g)));
    462   owl_message_set_direction_out(m);
     462  owl_message_set_direction_in(m);
    463463  owl_global_messagequeue_addmsg(&g, m);
    464464
  • logging.c

    r37eab7f reec69e1  
    295295      if (owl_message_is_logout(m)) fprintf(allfile, "LOGOUT\n\n");
    296296    } else {
    297       fprintf(file, "From: <%s> To: <%s>\n", owl_message_get_sender(m), owl_message_get_recipient(m));
    298       fprintf(file, "Time: %s\n\n", owl_message_get_timestr(m));
    299       fprintf(file, "%s\n\n", owl_message_get_body(m));
     297      fprintf(allfile, "From: <%s> To: <%s>\n", owl_message_get_sender(m), owl_message_get_recipient(m));
     298      fprintf(allfile, "Time: %s\n\n", owl_message_get_timestr(m));
     299      fprintf(allfile, "%s\n\n", owl_message_get_body(m));
    300300    }
    301301    fclose(allfile);
  • message.c

    r37eab7f reec69e1  
    685685  owl_message_set_type_loopback(m);
    686686  owl_message_set_body(m, text);
    687   owl_message_set_sender(m, "loopback-sender");
    688   owl_message_set_recipient(m, "loopback-recipient");
     687  owl_message_set_sender(m, "loopsender");
     688  owl_message_set_recipient(m, "looprecip");
    689689  owl_message_set_isprivate(m);
    690690}
Note: See TracChangeset for help on using the changeset viewer.