From 09f7ec143eef969bbebd10b7eb48504b0372c443 Mon Sep 17 00:00:00 2001 From: dequis Date: Wed, 21 Oct 2015 08:40:11 -0300 Subject: Add a per-user version of OPT_NOOTR, BEE_USER_NOOTR --- otr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'otr.c') diff --git a/otr.c b/otr.c index c17331a8..54c77ba9 100644 --- a/otr.c +++ b/otr.c @@ -440,7 +440,8 @@ 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 & OPT_NOOTR || + iu->bu->flags & BEE_USER_NOOTR) { return msg; } @@ -478,7 +479,8 @@ char *otr_filter_msg_out(irc_user_t *iu, char *msg, int flags) */ /* 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 & OPT_NOOTR || + iu->bu->flags & BEE_USER_NOOTR) { return msg; } -- cgit v1.2.3