mcabber/mcabber/otr.c
changeset 2217 c9640971beec
parent 2215 ba1a770dd632
child 2218 b56be18d5a04
equal deleted inserted replaced
2216:fa516ef22145 2217:c9640971beec
   605   char *htmlmsg, *rmsg;
   605   char *htmlmsg, *rmsg;
   606   ConnContext *ctx = otr_get_context(buddy);
   606   ConnContext *ctx = otr_get_context(buddy);
   607 
   607 
   608   *encryption_status = 0;
   608   *encryption_status = 0;
   609 
   609 
   610   if (!msg || !buddy || !encryption_status)
   610   if (!msg || !buddy || !*encryption_status)
   611     return NULL;
   611     return NULL;
   612 
   612 
   613   if (ctx->msgstate == OTRL_MSGSTATE_PLAINTEXT)
   613   if (ctx->msgstate == OTRL_MSGSTATE_PLAINTEXT)
   614     err = otrl_message_sending(userstate, &ops, NULL, ctx->accountname,
   614     err = otrl_message_sending(userstate, &ops, NULL, ctx->accountname,
   615 #ifdef HAVE_LIBOTR3
   615 #ifdef HAVE_LIBOTR3