aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorunknown <pesco@khjk.org>2013-08-02 20:08:34 +0200
committerunknown <pesco@khjk.org>2013-08-02 20:08:34 +0200
commit37ed402c7c34c56f9a8d352a67dc15f48906adbf (patch)
tree1c7afe4a627cd3bd69ad0144c6034a78111cea62
parentfa9478ea664824841c013615c0c4b324c8c78c0a (diff)
use INSTAG_RECENT for outgoing messages
-rw-r--r--otr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/otr.c b/otr.c
index 94b2134a..dc4ceb98 100644
--- a/otr.c
+++ b/otr.c
@@ -434,7 +434,7 @@ char *otr_filter_msg_out(irc_user_t *iu, char *msg, int flags)
ConnContext *ctx = NULL;
irc_t *irc = iu->irc;
struct im_connection *ic = iu->bu->ic;
- otrl_instag_t instag = OTRL_INSTAG_MASTER; // XXX?
+ otrl_instag_t instag = OTRL_INSTAG_RECENT; // XXX?
/* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
if(ic->acc->prpl->options & OPT_NOOTR) {
@@ -1374,6 +1374,8 @@ struct im_connection *check_imc(void *opdata, const char *accountname,
break;
}
assert(l != NULL); /* a match should always be found */
+ if(!l)
+ return NULL;
}
if (strcmp(accountname, ic->acc->user) != 0) {