Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/xmpp.c @ 2141:e702073612de
Add "hook-mdr-received" hook
This hook is triggered when a XEP-0184 Message Delivery Report is received.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 06 Jul 2014 14:48:59 +0200 |
parents | f063e36425a2 |
children | 8819bab88053 |
comparison
equal
deleted
inserted
replaced
2140:77cb7f328723 | 2141:e702073612de |
---|---|
1342 // the id as an attribute of the 'received' tag, we use the message id: | 1342 // the id as an attribute of the 'received' tag, we use the message id: |
1343 if (!id) | 1343 if (!id) |
1344 id = lm_message_get_id(m); | 1344 id = lm_message_get_id(m); |
1345 scr_remove_receipt_flag(jid, id); | 1345 scr_remove_receipt_flag(jid, id); |
1346 g_free(jid); | 1346 g_free(jid); |
1347 | |
1348 #ifdef MODULES_ENABLE | |
1349 { | |
1350 hk_arg_t args[] = { | |
1351 { "jid", from }, | |
1352 { NULL, NULL }, | |
1353 }; | |
1354 hk_run_handlers("hook-mdr-received", args); | |
1355 } | |
1356 #endif | |
1347 } | 1357 } |
1348 } | 1358 } |
1349 | 1359 |
1350 if (from) { | 1360 if (from) { |
1351 x = lm_message_node_find_xmlns(m->node, NS_MUC_USER); | 1361 x = lm_message_node_find_xmlns(m->node, NS_MUC_USER); |