diff options
author | unknown <pesco@khjk.org> | 2013-08-02 20:08:34 +0200 |
---|---|---|
committer | unknown <pesco@khjk.org> | 2013-08-02 20:08:34 +0200 |
commit | 37ed402c7c34c56f9a8d352a67dc15f48906adbf (patch) | |
tree | 1c7afe4a627cd3bd69ad0144c6034a78111cea62 | |
parent | fa9478ea664824841c013615c0c4b324c8c78c0a (diff) |
use INSTAG_RECENT for outgoing messages
-rw-r--r-- | otr.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |