Mercurial > prosody-hg
comparison core/stanza_router.lua @ 8349:2342eccf4a88
Merge 0.10->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 25 Oct 2017 01:32:30 +0200 |
| parents | c72db8047440 |
| children | 39ab6a296419 89e1bf37ff64 |
comparison
equal
deleted
inserted
replaced
| 8346:a567a646cf21 | 8349:2342eccf4a88 |
|---|---|
| 138 else | 138 else |
| 139 local h = hosts[stanza.attr.to or origin.host or origin.to_host]; | 139 local h = hosts[stanza.attr.to or origin.host or origin.to_host]; |
| 140 if h then | 140 if h then |
| 141 local event; | 141 local event; |
| 142 if xmlns == nil then | 142 if xmlns == nil then |
| 143 if stanza.name == "iq" and (stanza.attr.type == "set" or stanza.attr.type == "get") then | 143 if stanza.name == "iq" and (stanza.attr.type == "set" or stanza.attr.type == "get") |
| 144 and stanza.tags[1] and stanza.tags[1].attr.xmlns then | |
| 144 event = "stanza/iq/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name; | 145 event = "stanza/iq/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name; |
| 145 else | 146 else |
| 146 event = "stanza/"..stanza.name; | 147 event = "stanza/"..stanza.name; |
| 147 end | 148 end |
| 148 else | 149 else |
