comparison mcabber/mcabber/otr.c @ 2217:c9640971beec

Fix bug/typo introduced in 0c78d31c753d (Reported by franky)
author Mikael Berthe <mikael@lilotux.net>
date Thu, 05 Nov 2015 23:11:43 +0100
parents ba1a770dd632
children b56be18d5a04
comparison
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