Changeset 1dd3470 for otr.c


Ignore:
Timestamp:
2010-06-03T21:47:53Z (14 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
3759849
Parents:
bb09b3c
Message:

add an option to disable otr on twitter (and other unsuitable protocols)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    rbb09b3c r1dd3470  
    304304        OtrlPrivKey *k;
    305305       
     306        /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
     307        if(a->prpl->options & OPT_NOOTR) {
     308                return 0;
     309        }
     310       
    306311        k = otrl_privkey_find(irc->otr->us, a->user, a->prpl->name);
    307312        if(k) {
     
    324329        OtrlTLV *tlvs = NULL;
    325330        char *colormsg;
     331       
     332        /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
     333        if(ic->acc->prpl->options & OPT_NOOTR) {
     334                return (g_strdup(msg));
     335        }
    326336       
    327337        ignore_msg = otrl_message_receiving(ic->irc->otr->us, &global.otr_ops, ic,
     
    371381        char *otrmsg = NULL;
    372382        ConnContext *ctx = NULL;
     383
     384        /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
     385        if(ic->acc->prpl->options & OPT_NOOTR) {
     386                return (ic->acc->prpl->buddy_msg(ic, handle, msg, flags));
     387        }
    373388       
    374389        st = otrl_message_sending(ic->irc->otr->us, &global.otr_ops, ic,
Note: See TracChangeset for help on using the changeset viewer.