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 | 70e77200f7789e9fb606c7e99e30a54aca70c5c5 (patch) | |
tree | 65bc2e4d57655c0f62aec527649de4e5f46296d4 /core/sessionmanager.lua | |
parent | 125dc63f565a46aedcb1750c45dcc97c71c2c72b (diff) | |
parent | 9bd85eabf029220d25431ab17bc86bf308b51b8d (diff) | |
download | prosody-70e77200f7789e9fb606c7e99e30a54aca70c5c5.tar.gz prosody-70e77200f7789e9fb606c7e99e30a54aca70c5c5.zip |
Merge 0.10->trunk
Diffstat (limited to 'core/sessionmanager.lua')
-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; |