changeset 2194:f4c00c72b27d

Fix compilation when OTR is disabled
author Mikael Berthe <mikael@lilotux.net>
date Tue, 06 Oct 2015 21:16:41 +0200
parents 18fa5ecb1ef4
children 40ddaebeb81e
files mcabber/mcabber/xmpp.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp.c	Tue Jul 28 00:27:12 2015 +0200
+++ b/mcabber/mcabber/xmpp.c	Tue Oct 06 21:16:41 2015 +0200
@@ -420,10 +420,12 @@
     g_free(enc);
   }
 
+#ifdef HAVE_LIBOTR
   // We probably don't want Carbons for encrypted messages, since the other
   // resources won't be able to decrypt them.
   if (otr_msg && carbons_enabled())
     lm_message_node_add_child(x->node, "private", NS_CARBONS_2);
+#endif
 
   // XEP-0184: Message Receipts
   if (sl_buddy && xep184 &&