Comparison

plugins/muc/mod_muc.lua @ 5941:31f14991070b

mod_muc: Remove extra parenthesis (thanks janhouse)
author Kim Alvefur <zash@zash.se>
date Sat, 14 Dec 2013 17:25:17 +0100
parent 5939:56d81af64fc5
child 5945:51ead0aa3a02
comparison
equal deleted inserted replaced
5939:56d81af64fc5 5941:31f14991070b
162 if stanza.name ~= "presence" then 162 if stanza.name ~= "presence" then
163 origin.send(st.error_reply(stanza, "cancel", "item-not-found")); 163 origin.send(st.error_reply(stanza, "cancel", "item-not-found"));
164 return true; 164 return true;
165 end 165 end
166 if not(restrict_room_creation) or 166 if not(restrict_room_creation) or
167 is_admin(stanza.attr.from)) or 167 is_admin(stanza.attr.from) or
168 (restrict_room_creation == "local" and select(2, jid_split(stanza.attr.from)) == module.host:gsub("^[^%.]+%.", "")) then 168 (restrict_room_creation == "local" and select(2, jid_split(stanza.attr.from)) == module.host:gsub("^[^%.]+%.", "")) then
169 room = create_room(bare); 169 room = create_room(bare);
170 end 170 end
171 end 171 end
172 if room then 172 if room then