# HG changeset patch # User Vadim Misbakh-Soloviov # Date 1392807452 -25200 # Node ID d3579ea5ff33822348731d066fe4e484b2237bb9 # Parent 9ddfff2acddccca714ec67bd48517f3d265b003f mod_pubsub_mqtt: Avoid tracebacks about concatenating nil field diff -r 9ddfff2acddc -r d3579ea5ff33 mod_pubsub_mqtt/mod_pubsub_mqtt.lua --- a/mod_pubsub_mqtt/mod_pubsub_mqtt.lua Mon Feb 17 21:07:01 2014 +0100 +++ b/mod_pubsub_mqtt/mod_pubsub_mqtt.lua Wed Feb 19 17:57:32 2014 +0700 @@ -141,7 +141,7 @@ type = "publish"; id = "\000\000"; topic = module.host.."/"..event.node; - data = data_translators[event.item.name.." "..event.item.attr.xmlns](event.item); + data = data_translators[tostring(event.item.name).." "..tostring(event.item.attr.xmlns)](event.item); }; -- Broadcast to subscribers module:log("debug", "Broadcasting PUBLISH to subscribers of %s/%s", module.host, event.node);