Comparison

plugins/mod_announce.lua @ 10545:2fbcdf6da331

mod_announce: Silence luacheck warning about unused variable
author Kim Alvefur <zash@zash.se>
date Mon, 23 Dec 2019 21:43:34 +0100
parent 10026:1117138fa372
child 12642:9061f9621330
comparison
equal deleted inserted replaced
10544:0bd408d93f9a 10545:2fbcdf6da331
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