Mercurial > prosody-hg
comparison plugins/mod_presence.lua @ 7470:893378a1c03e
mod_presence: remove unused one-letter loop variable [luacheck]
| author | Anton Shestakov <av6@dwimlabs.net> |
|---|---|
| date | Sat, 09 Jul 2016 00:46:28 +0800 |
| parents | 7eec6f3c7300 |
| children | b1f80447a2b1 |
comparison
equal
deleted
inserted
replaced
| 7469:363e4a5e9b0a | 7470:893378a1c03e |
|---|---|
| 128 local h = hosts[host]; | 128 local h = hosts[host]; |
| 129 local count = 0; | 129 local count = 0; |
| 130 if h and h.type == "local" then | 130 if h and h.type == "local" then |
| 131 local u = h.sessions[user]; | 131 local u = h.sessions[user]; |
| 132 if u then | 132 if u then |
| 133 for k, session in pairs(u.sessions) do | 133 for _, session in pairs(u.sessions) do |
| 134 local pres = session.presence; | 134 local pres = session.presence; |
| 135 if pres then | 135 if pres then |
| 136 if stanza then pres = stanza; pres.attr.from = session.full_jid; end | 136 if stanza then pres = stanza; pres.attr.from = session.full_jid; end |
| 137 pres.attr.to = jid; | 137 pres.attr.to = jid; |
| 138 core_post_stanza(session, pres, true); | 138 core_post_stanza(session, pres, true); |
