Mercurial > prosody-modules
comparison mod_pubsub_mqtt/mod_pubsub_mqtt.lua @ 1246:e76f7b6be20e
mod_pubsub_mqtt: Fix namespace of translator too
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 03 Dec 2013 00:08:11 +0000 |
parents | c2bf6b2102aa |
children | d3579ea5ff33 |
comparison
equal
deleted
inserted
replaced
1245:a1287d1f8a1f | 1246:e76f7b6be20e |
---|---|
119 local function tostring_content(item) | 119 local function tostring_content(item) |
120 return tostring(item[1]); | 120 return tostring(item[1]); |
121 end | 121 end |
122 | 122 |
123 local data_translators = setmetatable({ | 123 local data_translators = setmetatable({ |
124 ["data https://prosody.im/protocol/mqtt"] = tostring_content; | 124 ["data https://prosody.im/protocol/data"] = tostring_content; |
125 ["json urn:xmpp:json:0"] = tostring_content; | 125 ["json urn:xmpp:json:0"] = tostring_content; |
126 }, { | 126 }, { |
127 __index = function () return tostring; end; | 127 __index = function () return tostring; end; |
128 }); | 128 }); |
129 | 129 |