Mercurial > prosody-hg
comparison plugins/mod_pep.lua @ 1461:51f0202b0868
mod_pep: Escape + in pattern
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 02 Jul 2009 15:43:27 +0100 |
| parents | 4723bd466a54 |
| children | 569d58d21612 |
comparison
equal
deleted
inserted
replaced
| 1460:5882ed6219ff | 1461:51f0202b0868 |
|---|---|
| 191 ver = calculate_hash(disco.tags); -- calculate hash | 191 ver = calculate_hash(disco.tags); -- calculate hash |
| 192 end | 192 end |
| 193 local notify = {}; | 193 local notify = {}; |
| 194 for _, feature in pairs(disco.tags) do | 194 for _, feature in pairs(disco.tags) do |
| 195 if feature.name == "feature" and feature.attr.var then | 195 if feature.name == "feature" and feature.attr.var then |
| 196 local nfeature = feature.attr.var:match("^(.*)+notify$"); | 196 local nfeature = feature.attr.var:match("^(.*)%+notify$"); |
| 197 if nfeature then notify[nfeature] = true; end | 197 if nfeature then notify[nfeature] = true; end |
| 198 end | 198 end |
| 199 end | 199 end |
| 200 hash_map[ver] = notify; -- update hash map | 200 hash_map[ver] = notify; -- update hash map |
| 201 recipients[user][contact] = notify; -- set recipient's data to calculated data | 201 recipients[user][contact] = notify; -- set recipient's data to calculated data |
