Changeset 09f7ec1 for otr.c


Ignore:
Timestamp:
2015-10-21T11:40:11Z (6 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
3314ced
Parents:
2b0c05c
Message:

Add a per-user version of OPT_NOOTR, BEE_USER_NOOTR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    r2b0c05c r09f7ec1  
    441441
    442442        /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
    443         if (ic->acc->prpl->options & OPT_NOOTR) {
     443        if (ic->acc->prpl->options & OPT_NOOTR ||
     444            iu->bu->flags & BEE_USER_NOOTR) {
    444445                return msg;
    445446        }
     
    479480
    480481        /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
    481         if (ic->acc->prpl->options & OPT_NOOTR) {
     482        if (ic->acc->prpl->options & OPT_NOOTR ||
     483            iu->bu->flags & BEE_USER_NOOTR) {
    482484                return msg;
    483485        }
Note: See TracChangeset for help on using the changeset viewer.