Create a hook for sent messages
[cascardo/chat.git] / message.c
index be28d5d..f1d1941 100644 (file)
--- a/message.c
+++ b/message.c
@@ -28,5 +28,6 @@ hc_xmpp_send_message (hc_xmpp_t *xmpp, char *to, char *body)
   bd = iks_insert (msg, "body");
   iks_insert_cdata (bd, body, 0);
   hc_xmpp_send_iks (xmpp, msg);
+  hc_xmpp_sent_message (xmpp, msg);
   iks_delete (msg);
 }