Mercurial > prosody-hg
comparison plugins/mod_mam/mod_mam.lua @ 7856:bd5008a7dcbd
mod_mam: Use correct local name for util.jid.prepped_split
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 23 Jan 2017 19:32:07 +0100 |
| parents | 80ee0d9cd56f |
| children | 1017a4f8929d |
comparison
equal
deleted
inserted
replaced
| 7855:e429982940fc | 7856:bd5008a7dcbd |
|---|---|
| 247 local with = jid_bare(c2s and orig_to or orig_from); | 247 local with = jid_bare(c2s and orig_to or orig_from); |
| 248 | 248 |
| 249 -- Filter out <stanza-id> that claim to be from us | 249 -- Filter out <stanza-id> that claim to be from us |
| 250 stanza:maptags(function (tag) | 250 stanza:maptags(function (tag) |
| 251 if tag.name == "stanza-id" and tag.attr.xmlns == "urn:xmpp:sid:0" then | 251 if tag.name == "stanza-id" and tag.attr.xmlns == "urn:xmpp:sid:0" then |
| 252 local by_user, by_host, res = prepped_split(tag.attr.by); | 252 local by_user, by_host, res = jid_prepped_split(tag.attr.by); |
| 253 if not res and by_host == module.host and by_user == store_user then | 253 if not res and by_host == module.host and by_user == store_user then |
| 254 return nil; | 254 return nil; |
| 255 end | 255 end |
| 256 end | 256 end |
| 257 return tag; | 257 return tag; |
