Changeset

3490:972b21d34306

mod_csi_battery_saver: fix typo in util.stanza:get_child()
author tmolitor <thilo@eightysoft.de>
date Mon, 18 Mar 2019 21:26:06 +0100
parents 3489:33b3f02a9e7d
children 3491:4e9d4b07e3e9
files mod_csi_battery_saver/mod_csi_battery_saver.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;