Changeset 9f03c47 for otr.c


Ignore:
Timestamp:
2016-11-14T00:37:14Z (5 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
537d9b9, b4f496e
Parents:
ea90275
Message:

Improve support for protocols which don't require a password

This adds a prpl_options_t enum with flags, which mostly just brings
OPT_PROTO_{NO_PASSWORD,PASSWORD_OPTIONAL} from libpurple as
PRPL_OPT_{NO_PASSWORD,PASSWORD_OPTIONAL}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    rea90275 r9f03c47  
    429429
    430430        /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
    431         if (a->prpl->options & OPT_NOOTR) {
     431        if (a->prpl->options & PRPL_OPT_NOOTR) {
    432432                return 0;
    433433        }
     
    457457
    458458        /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
    459         if (ic->acc->prpl->options & OPT_NOOTR ||
     459        if (ic->acc->prpl->options & PRPL_OPT_NOOTR ||
    460460            iu->bu->flags & BEE_USER_NOOTR) {
    461461                return msg;
Note: See TracChangeset for help on using the changeset viewer.