core/sessionmanager.lua

changeset 1471
8b3753b080fc
parent 1469
9f2b6e2bc498
child 1478
da11f2652ae9
equal deleted inserted replaced
1470:af4b918e3432 1471:8b3753b080fc
130 condition = "conflict"; 130 condition = "conflict";
131 text = "Replaced by new connection"; 131 text = "Replaced by new connection";
132 }; 132 };
133 if not next(sessions) then 133 if not next(sessions) then
134 hosts[session.host].sessions[session.username] = { sessions = sessions }; 134 hosts[session.host].sessions[session.username] = { sessions = sessions };
135 bare_sessions[session.username.."@"..session.host] = hosts[session.host].sessions[session.username];
135 end 136 end
136 end 137 end
137 if increment and sessions[resource] then 138 if increment and sessions[resource] then
138 local count = 1; 139 local count = 1;
139 while sessions[resource.."#"..count] do 140 while sessions[resource.."#"..count] do

mercurial