mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
mod_announce: Silence luacheck warning about unused variable
This commit is contained in:
parent
d7df11baf3
commit
a2cfaf8c28
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ end
|
||||||
-- Old <message>-based jabberd-style announcement sending
|
-- Old <message>-based jabberd-style announcement sending
|
||||||
function handle_announcement(event)
|
function handle_announcement(event)
|
||||||
local stanza = event.stanza;
|
local stanza = event.stanza;
|
||||||
|
-- luacheck: ignore 211/node
|
||||||
local node, host, resource = jid.split(stanza.attr.to);
|
local node, host, resource = jid.split(stanza.attr.to);
|
||||||
|
|
||||||
if resource ~= "announce/online" then
|
if resource ~= "announce/online" then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue