Changeset

5144:a30507061526

MUC: Fix traceback caused by faulty logic precedence. (thanks waqas, nulani)
author Kim Alvefur <zash@zash.se>
date Tue, 25 Sep 2012 22:03:35 +0200 (2012-09-25)
parents 5142:3221746f4769
children 5145:53f741a5a73a
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Sun Sep 23 01:11:20 2012 +0500
+++ b/plugins/muc/muc.lib.lua	Tue Sep 25 22:03:35 2012 +0200
@@ -522,7 +522,7 @@
 			end
 		end
 	elseif not current_nick then -- not in room
-		if type == "error" or type == "result" and stanza.name == "iq" then
+		if (type == "error" or type == "result") and stanza.name == "iq" then
 			local id = stanza.attr.id;
 			stanza.attr.from, stanza.attr.to, stanza.attr.id = deconstruct_stanza_id(self, stanza);
 			if stanza.attr.id then