Changeset f82e233 for functions.c


Ignore:
Timestamp:
Dec 1, 2003, 2:04:31 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:
3162c8a
Parents:
c1be0c6
Message:
Un-word-wrap text when sending AIM messages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    ra0a5179 rf82e233  
    432432{
    433433  int ret;
     434  char *msg, *format_msg;
     435
     436  /* make a formatted copy of the message */
     437  msg=owl_editwin_get_text(owl_global_get_typwin(&g));
     438  format_msg=owl_strdup(msg);
     439  owl_text_wordunwrap(format_msg);
    434440 
    435   /*  send the message */
    436   ret=owl_aim_send_im(to, owl_editwin_get_text(owl_global_get_typwin(&g)));
     441  /* send the message */
     442  ret=owl_aim_send_im(to, format_msg);
    437443  if (!ret) {
    438444    owl_function_makemsg("AIM message sent.");
     
    443449  /* display the message as an outgoing message in the receive window */
    444450  if (owl_global_is_displayoutgoing(&g)) {
    445     owl_function_make_outgoing_aim(owl_editwin_get_text(owl_global_get_typwin(&g)), to);
     451    owl_function_make_outgoing_aim(msg, to);
    446452  }
    447453
    448454  /* log it if we have logging turned on */
    449455  if (owl_global_is_logging(&g)) {
    450     owl_log_outgoing_aim(to, owl_editwin_get_text(owl_global_get_typwin(&g)));
    451   }
     456    owl_log_outgoing_aim(to, msg);
     457  }
     458
     459  owl_free(format_msg);
    452460}
    453461
Note: See TracChangeset for help on using the changeset viewer.