mod_carbons/mod_carbons.lua
changeset 1798 eefe4b69b5f6
parent 1793 dbce8a7726ef
child 1799 91c01ef82807
--- a/mod_carbons/mod_carbons.lua	Thu Aug 27 12:14:40 2015 +0200
+++ b/mod_carbons/mod_carbons.lua	Thu Aug 27 12:16:39 2015 +0200
@@ -32,7 +32,7 @@
 	local orig_from = stanza.attr.from;
 	local orig_to = stanza.attr.to;
 
-	if not(orig_type == "chat" or orig_type == "normal" and standard:get_child("body")) then
+	if not(orig_type == "chat" or orig_type == "normal" and stanza:get_child("body")) then
 		return -- Only chat type messages
 	end