Diff

plugins/mod_carbons.lua @ 7704:5022e6181193

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 18 Oct 2016 19:07:55 +0200
parent 7698:edacd0bef0e8
child 7718:c58075c4d375
line wrap: on
line diff
--- a/plugins/mod_carbons.lua	Sun Oct 16 00:39:10 2016 +0200
+++ b/plugins/mod_carbons.lua	Tue Oct 18 19:07:55 2016 +0200
@@ -26,7 +26,7 @@
 	local orig_from = stanza.attr.from;
 	local orig_to = stanza.attr.to;
 	
-	if not(orig_type == "chat" or orig_type == "normal" and stanza: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