Mercurial > prosody-hg
comparison plugins/muc/mod_muc.lua @ 5943:355f8b59bf1b
mod_muc: Remove extra parenthesis (thanks janhouse)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 14 Dec 2013 17:25:17 +0100 |
| parents | deb261fb5c04 |
| children | 51ead0aa3a02 2d652afa57e4 |
comparison
equal
deleted
inserted
replaced
| 5938:deb261fb5c04 | 5943:355f8b59bf1b |
|---|---|
| 153 if stanza.name ~= "presence" then | 153 if stanza.name ~= "presence" then |
| 154 origin.send(st.error_reply(stanza, "cancel", "item-not-found")); | 154 origin.send(st.error_reply(stanza, "cancel", "item-not-found")); |
| 155 return true; | 155 return true; |
| 156 end | 156 end |
| 157 if not(restrict_room_creation) or | 157 if not(restrict_room_creation) or |
| 158 is_admin(stanza.attr.from)) or | 158 is_admin(stanza.attr.from) or |
| 159 (restrict_room_creation == "local" and select(2, jid_split(stanza.attr.from)) == module.host:gsub("^[^%.]+%.", "")) then | 159 (restrict_room_creation == "local" and select(2, jid_split(stanza.attr.from)) == module.host:gsub("^[^%.]+%.", "")) then |
| 160 room = create_room(bare); | 160 room = create_room(bare); |
| 161 end | 161 end |
| 162 end | 162 end |
| 163 if room then | 163 if room then |
