Mercurial > prosody-modules
comparison mod_firewall/conditions.lib.lua @ 2071:4161ff87e5a4
mod_firewall/conditions: Add semicolon
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 11 Mar 2016 18:15:58 +0100 |
| parents | 2356114ff505 |
| children | eda5c54dfa30 |
comparison
equal
deleted
inserted
replaced
| 2070:2356114ff505 | 2071:4161ff87e5a4 |
|---|---|
| 19 | 19 |
| 20 local wildcard_equivs = { ["*"] = ".*", ["?"] = "." }; | 20 local wildcard_equivs = { ["*"] = ".*", ["?"] = "." }; |
| 21 | 21 |
| 22 local function compile_jid_match_part(part, match) | 22 local function compile_jid_match_part(part, match) |
| 23 if not match then | 23 if not match then |
| 24 return part.." == nil" | 24 return part.." == nil"; |
| 25 end | 25 end |
| 26 local pattern = match:match("<(.*)>"); | 26 local pattern = match:match("<(.*)>"); |
| 27 if pattern then | 27 if pattern then |
| 28 if pattern == "*" then | 28 if pattern == "*" then |
| 29 return part; | 29 return part; |
