Changeset e4752a6


Ignore:
Timestamp:
2013-08-03T13:06:30Z (11 years ago)
Author:
unknown <pesco@…>
Branches:
master
Children:
51f937e
Parents:
e65039a
Message:

cleanup and docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    re65039a re4752a6  
    1414    <configdir>/<nick>.otr_keys
    1515    <configdir>/<nick>.otr_fprints
     16    <configdir>/<nick>.otr_instags  <- don't copy this one between hosts
    1617   
    1718  top-level todos: (search for TODO for more ;-))
     
    1920    per-account policy settings
    2021    per-user policy settings
     22    add a way to select recipient instance
    2123*/
    2224
     
    632634void op_gone_insecure(void *opdata, ConnContext *context)
    633635{
     636        /* XXX on 'otr disconnect', this gets called for every instance and we
     637         * get the message multiple times... */
     638
    634639        struct im_connection *ic =
    635640                check_imc(opdata, context->accountname, context->protocol);
     
    871876                        "unreadable encrypted message received");
    872877                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;
    873894        case OTRL_MSGEVENT_RCVDMSG_FOR_OTHER_INSTANCE:
    874895                display_otr_message(opdata, ctx,
    875896                        "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");
    892897                break;
    893898        default:
     
    16941699
    16951700        /* list all contexts */
     1701        /* XXX remove this, or split off as its own command */
     1702        /* XXX show instags? */
    16961703        irc_rootmsg(irc, "%s", "");
    16971704        irc_rootmsg(irc, "\x1f" "connection contexts:\x1f (bold=currently encrypted)");
     
    17221729void show_otr_context_info(irc_t *irc, ConnContext *ctx)
    17231730{
    1724         // XXX show all contexts
     1731        // XXX show all instags/subcontexts
    17251732
    17261733        switch(ctx->otr_offer) {
Note: See TracChangeset for help on using the changeset viewer.