Changeset e4752a6
- Timestamp:
- 2013-08-03T13:06:30Z (11 years ago)
- Branches:
- master
- Children:
- 51f937e
- Parents:
- e65039a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
otr.c
re65039a re4752a6 14 14 <configdir>/<nick>.otr_keys 15 15 <configdir>/<nick>.otr_fprints 16 <configdir>/<nick>.otr_instags <- don't copy this one between hosts 16 17 17 18 top-level todos: (search for TODO for more ;-)) … … 19 20 per-account policy settings 20 21 per-user policy settings 22 add a way to select recipient instance 21 23 */ 22 24 … … 632 634 void op_gone_insecure(void *opdata, ConnContext *context) 633 635 { 636 /* XXX on 'otr disconnect', this gets called for every instance and we 637 * get the message multiple times... */ 638 634 639 struct im_connection *ic = 635 640 check_imc(opdata, context->accountname, context->protocol); … … 871 876 "unreadable encrypted message received"); 872 877 break; 878 case OTRL_MSGEVENT_RCVDMSG_MALFORMED: 879 display_otr_message(opdata, ctx, 880 "malformed OTR message received"); 881 break; 882 case OTRL_MSGEVENT_RCVDMSG_GENERAL_ERR: 883 display_otr_message(opdata, ctx, 884 "OTR error message received: %s", message); 885 break; 886 case OTRL_MSGEVENT_RCVDMSG_UNENCRYPTED: 887 display_otr_message(opdata, ctx, 888 "unencrypted message received: %s", message); 889 break; 890 case OTRL_MSGEVENT_RCVDMSG_UNRECOGNIZED: 891 display_otr_message(opdata, ctx, 892 "unrecognized OTR message received"); 893 break; 873 894 case OTRL_MSGEVENT_RCVDMSG_FOR_OTHER_INSTANCE: 874 895 display_otr_message(opdata, ctx, 875 896 "OTR message for a different instance received"); 876 break;877 case OTRL_MSGEVENT_RCVDMSG_MALFORMED:878 display_otr_message(opdata, ctx,879 "malformed OTR message received");880 break;881 case OTRL_MSGEVENT_RCVDMSG_GENERAL_ERR:882 display_otr_message(opdata, ctx,883 "OTR error message received: %s", message);884 break;885 case OTRL_MSGEVENT_RCVDMSG_UNENCRYPTED:886 display_otr_message(opdata, ctx,887 "unencrypted message received: %s", message);888 break;889 case OTRL_MSGEVENT_RCVDMSG_UNRECOGNIZED:890 display_otr_message(opdata, ctx,891 "unrecognized OTR message received");892 897 break; 893 898 default: … … 1694 1699 1695 1700 /* list all contexts */ 1701 /* XXX remove this, or split off as its own command */ 1702 /* XXX show instags? */ 1696 1703 irc_rootmsg(irc, "%s", ""); 1697 1704 irc_rootmsg(irc, "\x1f" "connection contexts:\x1f (bold=currently encrypted)"); … … 1722 1729 void show_otr_context_info(irc_t *irc, ConnContext *ctx) 1723 1730 { 1724 // XXX show all contexts1731 // XXX show all instags/subcontexts 1725 1732 1726 1733 switch(ctx->otr_offer) {
Note: See TracChangeset
for help on using the changeset viewer.