diff mcabber/src/commands.c @ 1602:f4a2c6f767d1

Message Receipts support (XEP-0184)
author franky
date Wed, 24 Sep 2008 11:41:29 +0200
parents dcd5d4c75199
children 54029aba9452
line wrap: on
line diff
--- a/mcabber/src/commands.c	Sun Oct 11 15:59:20 2009 +0200
+++ b/mcabber/src/commands.c	Wed Sep 24 11:41:29 2008 +0200
@@ -1114,6 +1114,7 @@
   gint crypted;
   gint retval = 0;
   int isroom;
+  gpointer xep184 = NULL;
 
   if (!lm_connection_is_authenticated(lconnection)) {
     scr_LogPrint(LPRINT_NORMAL, "You are not connected.");
@@ -1162,7 +1163,7 @@
 
   // Network part
   xmpp_send_msg(fjid, msg, (isroom ? ROSTER_TYPE_ROOM : ROSTER_TYPE_USER),
-                subj, FALSE, &crypted, type_overwrite);
+                subj, FALSE, &crypted, type_overwrite, &xep184);
 
   if (crypted == -1) {
     scr_LogPrint(LPRINT_LOGNORM, "Encryption error.  Message was not sent.");
@@ -1172,7 +1173,7 @@
 
   // Hook
   if (!isroom)
-    hk_message_out(bare_jid, rp, 0, hmsg, crypted);
+    hk_message_out(bare_jid, rp, 0, hmsg, crypted, xep184);
 
 send_message_to_return:
   if (hmsg != msg) g_free(hmsg);
@@ -2630,7 +2631,7 @@
   arg = to_utf8(arg);
   // Set the topic
   xmpp_send_msg(buddy_getjid(bud), NULL, ROSTER_TYPE_ROOM, arg ? arg : "",
-                FALSE, NULL, LM_MESSAGE_SUB_TYPE_NOT_SET);
+                FALSE, NULL, LM_MESSAGE_SUB_TYPE_NOT_SET, NULL);
   g_free(arg);
 }