Diff

mod_csi_battery_saver/mod_csi_battery_saver.lua @ 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
parent 3481:1c8612d8db55
child 3633:6b0db0f2d57a
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;