Changeset 440ce01 for functions.c


Ignore:
Timestamp:
May 31, 2003, 4:17:24 PM (18 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:
0ff8fb57
Parents:
5e53c4a
Message:
added owl_prototypes.h to repository
fix outgoing aim message to send the real text
display sender and recipient of owl messages
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rd09e5a1 r440ce01  
    134134  /* create the message */
    135135  m=owl_malloc(sizeof(owl_message));
    136   owl_message_create_aim(m, owl_global_get_aim_screenname(&g), body);
    137   owl_message_set_recipient(m, to);
     136  owl_message_create_aim(m, owl_global_get_aim_screenname(&g), to, body);
    138137  owl_message_set_direction_out(m);
    139138
     
    18461845    /* aim */
    18471846    if (owl_message_is_type_aim(m)) {
    1848       buff=owl_sprintf("aimwrite %s", owl_message_get_sender(m));
    1849     }
    1850 
     1847      if (owl_message_is_direction_out(m)) {
     1848        buff=owl_sprintf("aimwrite %s", owl_message_get_recipient(m));
     1849      } else {
     1850        buff=owl_sprintf("aimwrite %s", owl_message_get_sender(m));
     1851      }
     1852    }
     1853   
    18511854    if (enter) {
    18521855      owl_history *hist = owl_global_get_cmd_history(&g);
Note: See TracChangeset for help on using the changeset viewer.