Software /
code /
prosody
Comparison
plugins/mod_storage_xep0227.lua @ 6702:6a5c6c95cf78
mod_storage_xep0227: Use the registered namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 15 May 2015 15:30:38 +0200 |
parent | 6701:88a25c364a14 |
child | 6703:353a7d4dfdc2 |
comparison
equal
deleted
inserted
replaced
6701:88a25c364a14 | 6702:6a5c6c95cf78 |
---|---|
45 end | 45 end |
46 end | 46 end |
47 end | 47 end |
48 end | 48 end |
49 local function createOuterXml(user, host) | 49 local function createOuterXml(user, host) |
50 return st.stanza("server-data", {xmlns='http://www.xmpp.org/extensions/xep-0227.html#ns'}) | 50 return st.stanza("server-data", {xmlns='urn:xmpp:pie:0'}) |
51 :tag("host", {jid=host}) | 51 :tag("host", {jid=host}) |
52 :tag("user", {name = user}); | 52 :tag("user", {name = user}); |
53 end | 53 end |
54 local function removeFromArray(array, value) | 54 local function removeFromArray(array, value) |
55 for i,item in ipairs(array) do | 55 for i,item in ipairs(array) do |