Mercurial > prosody-hg
comparison core/sessionmanager.lua @ 6677:1089f45c5e67
sessionmanager: Rename argument to avoid name clash with local variable [luacheck]
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 06 May 2015 19:58:33 +0100 |
| parents | a536978e0f01 |
| children | 6236668da30a |
comparison
equal
deleted
inserted
replaced
| 6676:a536978e0f01 | 6677:1089f45c5e67 |
|---|---|
| 206 end | 206 end |
| 207 end | 207 end |
| 208 return count; | 208 return count; |
| 209 end | 209 end |
| 210 | 210 |
| 211 function send_to_interested_resources(user, host, stanza) | 211 function send_to_interested_resources(username, host, stanza) |
| 212 local jid = user.."@"..host; | 212 local jid = username.."@"..host; |
| 213 local count = 0; | 213 local count = 0; |
| 214 local user = bare_sessions[jid]; | 214 local user = bare_sessions[jid]; |
| 215 if user then | 215 if user then |
| 216 for _, session in pairs(user.sessions) do | 216 for _, session in pairs(user.sessions) do |
| 217 if session.interested then | 217 if session.interested then |
