Comparison

core/sessionmanager.lua @ 6619:78d1706982b2

sessionmanager: Rename parameter to avoid varible name conflict
author Matthew Wild <mwild1@gmail.com>
date Fri, 03 Apr 2015 19:31:05 +0100
parent 6602:61b6a4fc65f1
child 6663:d3023dd07cb6
comparison
equal deleted inserted replaced
6618:469151b08065 6619:78d1706982b2
191 hosts[session.host].events.fire_event("resource-bind", {session=session}); 191 hosts[session.host].events.fire_event("resource-bind", {session=session});
192 192
193 return true; 193 return true;
194 end 194 end
195 195
196 function send_to_available_resources(user, host, stanza) 196 function send_to_available_resources(username, host, stanza)
197 local jid = user.."@"..host; 197 local jid = username.."@"..host;
198 local count = 0; 198 local count = 0;
199 local user = bare_sessions[jid]; 199 local user = bare_sessions[jid];
200 if user then 200 if user then
201 for k, session in pairs(user.sessions) do 201 for k, session in pairs(user.sessions) do
202 if session.presence then 202 if session.presence then