comparison plugins/mod_announce.lua @ 11120:b2331f3dfeea

Merge 0.11->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 30 Sep 2020 09:50:33 +0100
parents 2fbcdf6da331
children 9061f9621330
comparison
equal deleted inserted replaced
11119:68df52bf08d5 11120:b2331f3dfeea
36 36
37 37
38 -- Old <message>-based jabberd-style announcement sending 38 -- Old <message>-based jabberd-style announcement sending
39 function handle_announcement(event) 39 function handle_announcement(event)
40 local stanza = event.stanza; 40 local stanza = event.stanza;
41 -- luacheck: ignore 211/node
41 local node, host, resource = jid.split(stanza.attr.to); 42 local node, host, resource = jid.split(stanza.attr.to);
42 43
43 if resource ~= "announce/online" then 44 if resource ~= "announce/online" then
44 return; -- Not an announcement 45 return; -- Not an announcement
45 end 46 end