Changeset 440ce01
- Timestamp:
- May 31, 2003, 4:17:24 PM (22 years ago)
- 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
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
aim.c
rd09e5a1 r440ce01 167 167 int owl_aim_send_im(char *to, char *msg) 168 168 { 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); 170 170 } 171 171 … … 1241 1241 /* create a message, and put it on the message queue */ 1242 1242 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); 1244 1244 owl_message_set_direction_in(m); 1245 1245 owl_global_messagequeue_addmsg(&g, m); -
functions.c
rd09e5a1 r440ce01 134 134 /* create the message */ 135 135 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); 138 137 owl_message_set_direction_out(m); 139 138 … … 1846 1845 /* aim */ 1847 1846 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 1851 1854 if (enter) { 1852 1855 owl_history *hist = owl_global_get_cmd_history(&g); -
keys.c
recd5dc5 r440ce01 248 248 249 249 BIND_CMD("z", "start-command zwrite ", "start a zwrite command"); 250 BIND_CMD("a", "start-command aimwrite ", "start an aimwrite command"); 250 251 BIND_CMD("r", "reply", "reply to the current message"); 251 252 BIND_CMD("R", "reply sender", "reply to sender of the current message"); -
message.c
rd09e5a1 r440ce01 409 409 } 410 410 411 void owl_message_create_aim(owl_message *m, char *sender, char * text) {411 void owl_message_create_aim(owl_message *m, char *sender, char *recipient, char *text) { 412 412 char *indent; 413 413 … … 415 415 owl_message_set_body(m, text); 416 416 owl_message_set_sender(m, sender); 417 owl_message_set_recipient(m, recipient); 417 418 owl_message_set_type_aim(m); 418 419 … … 423 424 owl_fmtext_append_normal(&(m->fmtext), "AIM: "); 424 425 owl_fmtext_append_normal(&(m->fmtext), sender); 426 owl_fmtext_append_normal(&(m->fmtext), " -> "); 427 owl_fmtext_append_normal(&(m->fmtext), recipient); 425 428 owl_fmtext_append_normal(&(m->fmtext), "\n"); 426 429 owl_fmtext_append_ztext(&(m->fmtext), indent);
Note: See TracChangeset
for help on using the changeset viewer.