From 5db9a6c120a984390287664b3581c4f3796cb3be Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 25 Sep 2012 22:03:35 +0200 Subject: MUC: Fix traceback caused by faulty logic precedence. (thanks waqas, nulani) --- plugins/muc/muc.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index a7603535..6ba7b621 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -522,7 +522,7 @@ function room_mt:handle_to_occupant(origin, stanza) -- PM, vCards, etc 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 -- cgit v1.2.3