Changeset ce7db4d for functions.c
- Timestamp:
- Jun 24, 2003, 11:12:09 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:
- 658dc2f
- Parents:
- 723c427
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
rf1cbb7a rce7db4d 302 302 } 303 303 304 void owl_function_zwrite(char *line) 304 /* send, log and display an outgoing zephyr. If 'msg' is NULL 305 * the message is expected to be set from the zwrite line itself 306 */ 307 void owl_function_zwrite(char *line, char *msg) 305 308 { 306 309 owl_zwrite z; 307 310 int i, j; 311 char *mymsg; 308 312 309 313 /* create the zwrite and send the message */ 310 314 owl_zwrite_create_from_line(&z, line); 311 owl_zwrite_send_message(&z, owl_editwin_get_text(owl_global_get_typwin(&g))); 315 if (msg) { 316 owl_zwrite_set_message(&z, msg); 317 } 318 319 owl_zwrite_send_message(&z); 312 320 owl_function_makemsg("Waiting for ack..."); 321 322 mymsg=owl_zwrite_get_message(&z); 313 323 314 324 /* display the message as an outgoing message in the receive window */ 315 325 if (owl_global_is_displayoutgoing(&g) && owl_zwrite_is_personal(&z)) { 316 owl_function_make_outgoing_zephyr( owl_editwin_get_text(owl_global_get_typwin(&g)), line, owl_zwrite_get_zsig(&z));326 owl_function_make_outgoing_zephyr(mymsg, line, owl_zwrite_get_zsig(&z)); 317 327 } 318 328 … … 321 331 j=owl_zwrite_get_numrecips(&z); 322 332 for (i=0; i<j; i++) { 323 owl_log_outgoing_zephyr(owl_zwrite_get_recip_n(&z, i), 324 owl_editwin_get_text(owl_global_get_typwin(&g))); 333 owl_log_outgoing_zephyr(owl_zwrite_get_recip_n(&z, i), mymsg); 325 334 } 326 335 } … … 1073 1082 buff=owl_global_get_buffercommand(&g); 1074 1083 if (!strncmp(buff, "zwrite ", 7)) { 1075 owl_function_zwrite(buff );1084 owl_function_zwrite(buff, owl_editwin_get_text(owl_global_get_typwin(&g))); 1076 1085 } else if (!strncmp(buff, "aimwrite ", 9)) { 1077 1086 owl_function_aimwrite(buff+9);
Note: See TracChangeset
for help on using the changeset viewer.