Software / code / prosody
Comparison
plugins/adhoc/adhoc.lib.lua @ 12636:e8934ce6ea0f
util.stanza: Add method for extracting a single attribute value
Sometimes you only care about a single attribute, but the child tag
itself may be optional, leading to needing `tag and tag.attr.foo` or
`stanza:find("tag@foo")`.
The `:find()` method is fairly complex, so avoiding it for this kind of
simpler use case is a win.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 17 Aug 2022 19:04:30 +0200 |
| parent | 12429:16a49f04d507 |
| child | 12642:9061f9621330 |
comparison
equal
deleted
inserted
replaced
| 12635:f928cb5c5d04 | 12636:e8934ce6ea0f |
|---|