diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-05-13 17:00:27 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-05-13 17:00:27 +0100 |
commit | a885794fccabfc6dc8cc8e52f83c8ac865ddd8c8 (patch) | |
tree | 65bc2e4d57655c0f62aec527649de4e5f46296d4 /core | |
parent | daec51c435ca77914271200607841d55ff7408d7 (diff) | |
parent | 2f7ac943416fa13023e9d061ffc8020811a4ebf0 (diff) | |
download | prosody-a885794fccabfc6dc8cc8e52f83c8ac865ddd8c8.tar.gz prosody-a885794fccabfc6dc8cc8e52f83c8ac865ddd8c8.zip |
Merge 0.10->trunk
Diffstat (limited to 'core')
-rw-r--r-- | core/sessionmanager.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 5e4e2991..33cc3d21 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -198,7 +198,7 @@ function send_to_available_resources(username, host, stanza) local count = 0; local user = bare_sessions[jid]; if user then - for k, session in pairs(user.sessions) do + for _, session in pairs(user.sessions) do if session.presence then session.send(stanza); count = count + 1; @@ -208,12 +208,12 @@ function send_to_available_resources(username, host, stanza) return count; end -function send_to_interested_resources(user, host, stanza) - local jid = user.."@"..host; +function send_to_interested_resources(username, host, stanza) + local jid = username.."@"..host; local count = 0; local user = bare_sessions[jid]; if user then - for k, session in pairs(user.sessions) do + for _, session in pairs(user.sessions) do if session.interested then session.send(stanza); count = count + 1; |