diff options
author | dequis <dx@dxzone.com.ar> | 2015-10-21 08:40:11 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-10-21 08:40:11 -0300 |
commit | 09f7ec143eef969bbebd10b7eb48504b0372c443 (patch) | |
tree | 5be4e9df6601939cb307528f42f1b99e0b320da0 /otr.c | |
parent | 2b0c05c056eae4c9aa19584f8cbbac1be7337207 (diff) |
Add a per-user version of OPT_NOOTR, BEE_USER_NOOTR
Diffstat (limited to 'otr.c')
-rw-r--r-- | otr.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |