comparison mod_pubsub_text_interface/mod_pubsub_text_interface.lua @ 3489:33b3f02a9e7d

mod_pubsub_text_interface: Remove unused variable [luacheck]
author Kim Alvefur <zash@zash.se>
date Fri, 15 Mar 2019 04:27:52 +0100
parents 4ddb034a8a03
children 9980ea72ff91
comparison
equal deleted inserted replaced
3488:4ddb034a8a03 3489: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