Changeset

1309:d3579ea5ff33

mod_pubsub_mqtt: Avoid tracebacks about concatenating nil field
author Vadim Misbakh-Soloviov <mva@mva.name>
date Wed, 19 Feb 2014 17:57:32 +0700
parents 1308:9ddfff2acddc
children 1310:2df312eb816d
files mod_pubsub_mqtt/mod_pubsub_mqtt.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);