aboutsummaryrefslogtreecommitdiffstats
path: root/otr.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-11-13 21:37:14 -0300
committerdequis <dx@dxzone.com.ar>2016-11-13 21:37:14 -0300
commit9f03c472fef309878ff2f3bc720d51e6d03077f1 (patch)
treeb49d1be8c2e870e39432a3a9fc5cc41086ade894 /otr.c
parentea902752503fc5b356d6513911081ec932d804f2 (diff)
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}
Diffstat (limited to 'otr.c')
-rw-r--r--otr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/otr.c b/otr.c
index d07617f7..d2c1a2f2 100644
--- a/otr.c
+++ b/otr.c
@@ -428,7 +428,7 @@ int otr_check_for_key(account_t *a)
OtrlPrivKey *k;
/* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
- if (a->prpl->options & OPT_NOOTR) {
+ if (a->prpl->options & PRPL_OPT_NOOTR) {
return 0;
}
@@ -456,7 +456,7 @@ char *otr_filter_msg_in(irc_user_t *iu, char *msg, int flags)
struct im_connection *ic = iu->bu->ic;
/* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
- if (ic->acc->prpl->options & OPT_NOOTR ||
+ if (ic->acc->prpl->options & PRPL_OPT_NOOTR ||
iu->bu->flags & BEE_USER_NOOTR) {
return msg;
}