Changeset a5b5d00
- Timestamp:
- Mar 24, 2011, 4:42:22 PM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 3f52e14
- Parents:
- e5da3fe
- git-author:
- David Benjamin <davidben@mit.edu> (03/11/11 18:12:10)
- git-committer:
- David Benjamin <davidben@mit.edu> (03/24/11 16:42:22)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
message.c
re5da3fe ra5b5d00 980 980 /* Although not strictly the zwriteline, anyone using the unsantized version 981 981 * of it probably has a bug. */ 982 replyline = owl_zwrite_get_replyline(z );982 replyline = owl_zwrite_get_replyline(z, recip_index); 983 983 owl_message_set_zwriteline(m, replyline); 984 984 g_free(replyline); -
zwrite.c
re56303f ra5b5d00 382 382 * message field is stripped out. Result should be freed with 383 383 * g_free. 384 * 385 * If not a CC, only the recip_index'th user will be replied to. 384 386 */ 385 char *owl_zwrite_get_replyline(const owl_zwrite *z )387 char *owl_zwrite_get_replyline(const owl_zwrite *z, int recip_index) 386 388 { 387 389 /* Match ordering in zwrite help. */ … … 415 417 owl_string_append_quoted_arg(buf, z->opcode); 416 418 } 417 for (i = 0; i < owl_list_get_size(&(z->recips)); i++) { 419 if (z->cc) { 420 for (i = 0; i < owl_list_get_size(&(z->recips)); i++) { 421 g_string_append_c(buf, ' '); 422 owl_string_append_quoted_arg(buf, owl_list_get_element(&(z->recips), i)); 423 } 424 } else if (recip_index < owl_list_get_size(&(z->recips))) { 418 425 g_string_append_c(buf, ' '); 419 owl_string_append_quoted_arg(buf, owl_list_get_element(&(z->recips), i));426 owl_string_append_quoted_arg(buf, owl_list_get_element(&(z->recips), recip_index)); 420 427 } 421 428
Note: See TracChangeset
for help on using the changeset viewer.