Changeset 56330ff for functions.c


Ignore:
Timestamp:
Aug 25, 2002, 3:02:14 PM (19 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:
c01e477
Parents:
4b464a4
Message:
Moved zsig generation to the zwrite object
Print the zsig used for outgoing messages
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r4b464a4 r56330ff  
    8080}
    8181
    82 void owl_function_make_outgoing_zephyr(char *header, char *body, char *zwriteline) {
     82void owl_function_make_outgoing_zephyr(char *header, char *body, char *zwriteline, char *zsig) {
    8383  owl_message *m;
    8484  int followlast;
     
    9494   * Right now this only works for one recipient */
    9595  tobuff=owl_malloc(strlen(owl_zwrite_get_recip_n(&z, 0))+100);
    96   sprintf(tobuff, "Zephyr sent to %s", owl_zwrite_get_recip_n(&z, 0));
     96  sprintf(tobuff, "Zephyr sent to %s  (Zsig: %s)", owl_zwrite_get_recip_n(&z, 0), zsig);
    9797
    9898  /* create the message */
     
    129129  owl_global_set_needrefresh(&g);
    130130  owl_free(tobuff);
     131  owl_zwrite_free(&z);
    131132}
    132133
     
    153154  /* create and setup the editwin */
    154155  e=owl_global_get_typwin(&g);
    155   owl_editwin_new_style(e, OWL_EDITWIN_STYLE_MULTILINE,
    156                         owl_global_get_msg_history(&g));
     156  owl_editwin_new_style(e, OWL_EDITWIN_STYLE_MULTILINE, owl_global_get_msg_history(&g));
    157157
    158158  if (!owl_global_get_lockout_ctrld(&g)) {
     
    183183  owl_function_makemsg("Waiting for ack...");
    184184
    185   /* display the message as an admin message in the receive window */
     185  /* display the message as an outgoing message in the receive window */
    186186  if (owl_global_is_displayoutgoing(&g) && owl_zwrite_is_personal(&z)) {
    187187    owl_zwrite_get_recipstr(&z, buff);
    188188    tmpbuff = owl_sprintf("Message sent to %s", buff);
    189     owl_function_make_outgoing_zephyr(tmpbuff, owl_editwin_get_text(owl_global_get_typwin(&g)), line);
     189    owl_function_make_outgoing_zephyr(tmpbuff, owl_editwin_get_text(owl_global_get_typwin(&g)), line, owl_zwrite_get_zsig(&z));
    190190    owl_free(tmpbuff);
    191191  }
Note: See TracChangeset for help on using the changeset viewer.