Changeset cc17b76
- Timestamp:
- 2014-01-20T22:00:53Z (11 years ago)
- Branches:
- master
- Children:
- 367ea3c, 71004a3
- Parents:
- 4dda9e4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
otr.c
r4dda9e4 rcc17b76 454 454 st = otrl_message_sending(irc->otr->us, &otr_ops, ic, 455 455 ic->acc->user, ic->acc->prpl->name, iu->bu->handle, instag, 456 emsg, NULL, &otrmsg, OTRL_FRAGMENT_SEND_ ALL, &ctx, NULL, NULL);456 emsg, NULL, &otrmsg, OTRL_FRAGMENT_SEND_SKIP, &ctx, NULL, NULL); 457 457 /* in libotr 4.0.0 with OTRL_FRAGMENT_SEND_ALL, otrmsg must be passed 458 458 * but the value it gets carries no meaning. it can be set even though 459 * the message has been injected. */ 459 * the message has been injected. 460 * With OTRL_FRAGMENT_SEND_SKIP, libotr doesn't handle the sending, it's 461 * up to us. 462 */ 460 463 461 464 if(emsg != msg) { 462 465 g_free(emsg); /* we're done with this one */ 466 emsg = NULL; 463 467 } 464 468 if(st) { 465 /* TODO: Error reporting? */ 466 } 467 468 return NULL; 469 irc_rootmsg(irc, "Error encrypting text for OTR: %d", st); 470 } 471 472 if (otrmsg != NULL) { 473 return otrmsg; 474 } 475 return emsg; 469 476 } 470 477
Note: See TracChangeset
for help on using the changeset viewer.