Changeset 440ce01


Ignore:
Timestamp:
May 31, 2003, 4:17:24 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, 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
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • aim.c

    rd09e5a1 r440ce01  
    167167int owl_aim_send_im(char *to, char *msg)
    168168{
    169   aim_send_im(owl_global_get_aimsess(&g), to, AIM_IMFLAGS_ACK, "msg");
     169  aim_send_im(owl_global_get_aimsess(&g), to, AIM_IMFLAGS_ACK, msg);
    170170}
    171171
     
    12411241  /* create a message, and put it on the message queue */
    12421242  m=owl_malloc(sizeof(owl_message));
    1243   owl_message_create_aim(m, userinfo->sn, realmsg);
     1243  owl_message_create_aim(m, userinfo->sn, owl_global_get_aim_screenname(&g), realmsg);
    12441244  owl_message_set_direction_in(m);
    12451245  owl_global_messagequeue_addmsg(&g, m);
  • 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);
  • keys.c

    recd5dc5 r440ce01  
    248248
    249249  BIND_CMD("z",   "start-command zwrite ", "start a zwrite command");
     250  BIND_CMD("a",   "start-command aimwrite ", "start an aimwrite command");
    250251  BIND_CMD("r",   "reply",            "reply to the current message");
    251252  BIND_CMD("R",   "reply sender",     "reply to sender of the current message");
  • message.c

    rd09e5a1 r440ce01  
    409409}
    410410
    411 void owl_message_create_aim(owl_message *m, char *sender, char *text) {
     411void owl_message_create_aim(owl_message *m, char *sender, char *recipient, char *text) {
    412412  char *indent;
    413413
     
    415415  owl_message_set_body(m, text);
    416416  owl_message_set_sender(m, sender);
     417  owl_message_set_recipient(m, recipient);
    417418  owl_message_set_type_aim(m);
    418419
     
    423424  owl_fmtext_append_normal(&(m->fmtext), "AIM: ");
    424425  owl_fmtext_append_normal(&(m->fmtext), sender);
     426  owl_fmtext_append_normal(&(m->fmtext), " -> ");
     427  owl_fmtext_append_normal(&(m->fmtext), recipient);
    425428  owl_fmtext_append_normal(&(m->fmtext), "\n");
    426429  owl_fmtext_append_ztext(&(m->fmtext), indent);
Note: See TracChangeset for help on using the changeset viewer.