Software /
code /
prosody
Comparison
plugins/mod_presence.lua @ 8579:801ae5cb1341
mod_presence: Ignore unused argument but make note of its use elsewhere [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 09 Mar 2018 21:50:01 +0100 |
parent | 8574:f89d8ec48d86 |
child | 8728:41c959c5c84b |
comparison
equal
deleted
inserted
replaced
8574:f89d8ec48d86 | 8579:801ae5cb1341 |
---|---|
118 end | 118 end |
119 end | 119 end |
120 stanza.attr.to = nil; -- reset it | 120 stanza.attr.to = nil; -- reset it |
121 end | 121 end |
122 | 122 |
123 -- luacheck: ignore 212/recipient_session | |
124 -- TODO This argument is used in 3rd party modules | |
123 function send_presence_of_available_resources(user, host, jid, recipient_session, stanza) | 125 function send_presence_of_available_resources(user, host, jid, recipient_session, stanza) |
124 local h = hosts[host]; | 126 local h = hosts[host]; |
125 local count = 0; | 127 local count = 0; |
126 if h and h.type == "local" then | 128 if h and h.type == "local" then |
127 local u = h.sessions[user]; | 129 local u = h.sessions[user]; |