diff options
author | Kim Alvefur <zash@zash.se> | 2012-09-25 22:03:35 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-09-25 22:03:35 +0200 |
commit | 5db9a6c120a984390287664b3581c4f3796cb3be (patch) | |
tree | 4f52c18f7891e288515865f0fe7cdf7a01c76778 /plugins/muc/muc.lib.lua | |
parent | 4b8ade497e9541fe441c9100539022d41635c01a (diff) | |
download | prosody-5db9a6c120a984390287664b3581c4f3796cb3be.tar.gz prosody-5db9a6c120a984390287664b3581c4f3796cb3be.zip |
MUC: Fix traceback caused by faulty logic precedence. (thanks waqas, nulani)
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |