equal
deleted
inserted
replaced
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 |