# HG changeset patch # User tmolitor # Date 1552940766 -3600 # Node ID 972b21d343066b545aa411dc3cba0df0ce9b65a5 # Parent 33b3f02a9e7db306cb17a1f9d39367659c330d75 mod_csi_battery_saver: fix typo in util.stanza:get_child() diff -r 33b3f02a9e7d -r 972b21d34306 mod_csi_battery_saver/mod_csi_battery_saver.lua --- a/mod_csi_battery_saver/mod_csi_battery_saver.lua Fri Mar 15 04:27:52 2019 +0100 +++ b/mod_csi_battery_saver/mod_csi_battery_saver.lua Mon Mar 18 21:26:06 2019 +0100 @@ -25,7 +25,7 @@ local carbon = stanza:child_with_ns("urn:xmpp:carbons:2") or stanza:child_with_ns("urn:xmpp:carbons:1"); if not carbon then return; end local direction = carbon.name == "sent" and "out" or "in"; - local forward = carbon:get_child("urn:xmpp:forward:0", "forwarded"); + local forward = carbon:get_child("forwarded", "urn:xmpp:forward:0"); local message = forward and forward:child_with_name("message") or nil; if not message then return; end return message, direction;