mod_pubsub_text_interface/mod_pubsub_text_interface.lua
changeset 3493 33b3f02a9e7d
parent 3492 4ddb034a8a03
child 3648 9980ea72ff91
equal deleted inserted replaced
3492:4ddb034a8a03 3493:33b3f02a9e7d
    17 if pubsub.get_last_item then -- COMPAT not available in 0.10
    17 if pubsub.get_last_item then -- COMPAT not available in 0.10
    18 	help = help ..  "\n- `last node` - send the last item (again)"
    18 	help = help ..  "\n- `last node` - send the last item (again)"
    19 end
    19 end
    20 
    20 
    21 module:hook("message/host", function (event)
    21 module:hook("message/host", function (event)
    22 	local origin, stanza = event.origin, event.stanza;
    22 	local stanza = event.stanza;
    23 	local body = stanza:get_child_text("body");
    23 	local body = stanza:get_child_text("body");
    24 	if not body then return end -- bail out
    24 	if not body then return end -- bail out
    25 
    25 
    26 	local from = stanza.attr.from;
    26 	local from = stanza.attr.from;
    27 
    27