Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/xmpp_muc.c @ 2303:4f3821bda633
LM: Use get_child in place of find_child
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 30 Jan 2017 18:46:15 +0100 |
parents | f181418db215 |
children | ffd0e57e9563 |
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp_muc.c Sun Jan 29 21:39:35 2017 +0100 +++ b/mcabber/mcabber/xmpp_muc.c Mon Jan 30 18:46:15 2017 +0100 @@ -308,7 +308,7 @@ LmMessageNode *y, *z; const char *p, *actorjid, *actornick; - y = lm_message_node_find_child(xmldata, "item"); + y = lm_message_node_get_child(xmldata, "item"); if (!y) return; @@ -334,7 +334,7 @@ *mbjid = lm_message_node_get_attribute(y, "jid"); *mbnick = lm_message_node_get_attribute(y, "nick"); // For kick/ban, there can be actor and reason tags - z = lm_message_node_find_child(y, "actor"); + z = lm_message_node_get_child(y, "actor"); if (z) { actornick = lm_message_node_get_attribute(z, "nick"); actorjid = lm_message_node_get_attribute(z, "jid"); @@ -658,7 +658,7 @@ } else { // Natural leave if (our_presence) { - LmMessageNode *destroynode = lm_message_node_find_child(xmldata, + LmMessageNode *destroynode = lm_message_node_get_child(xmldata, "destroy"); if (destroynode) { reason = lm_message_node_get_child_value(destroynode, "reason");