diff mcabber/mcabber/xmpp_iqrequest.c @ 2104:c7e9950fa741

Added option to enable carbons (set carbons = 1 in mcabberrc) If the server supports carbons and the user has carbons enabled we enable them. Now we need to handle XEP-0297 (Stanza Forwarding) stanzas to make sure the messages end up at the correct place.
author Roeland Jago Douma <roeland@famdouma.nl>
date Sat, 02 Mar 2013 18:22:10 +0100
parents 1210a22726d3
children 9023a6f2bf6c
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp_iqrequest.c	Fri Mar 01 15:27:29 2013 +0100
+++ b/mcabber/mcabber/xmpp_iqrequest.c	Sat Mar 02 18:22:10 2013 +0100
@@ -31,6 +31,7 @@
 #include "settings.h"
 #include "hooks.h"
 #include "hbuf.h"
+#include "carbons.h"
 
 extern LmMessageNode *bookmarks;
 extern LmMessageNode *rosternotes;
@@ -92,7 +93,7 @@
     const char *v = lm_message_node_get_attribute(feature, "var");
 
     if (!g_strcmp0(v, NS_CARBONS_2)) {
-     scr_LogPrint(LPRINT_NORMAL|LPRINT_DEBUG, "We have carbons!");       
+      carbons_available();
     }
   }