sessionmanager: Reset bare_sessions[user] after resource conflict resolution. Fixes the other stanza gobbling bug \o/
authorMatthew Wild <mwild1@gmail.com>
Fri, 03 Jul 2009 21:47:26 +0100
changeset 1471 8b3753b080fc
parent 1470 af4b918e3432
child 1472 9b13cea9fa3e
sessionmanager: Reset bare_sessions[user] after resource conflict resolution. Fixes the other stanza gobbling bug \o/
core/sessionmanager.lua
--- a/core/sessionmanager.lua	Fri Jul 03 21:44:30 2009 +0100
+++ b/core/sessionmanager.lua	Fri Jul 03 21:47:26 2009 +0100
@@ -132,6 +132,7 @@
 				};
 				if not next(sessions) then
 					hosts[session.host].sessions[session.username] = { sessions = sessions };
+					bare_sessions[session.username.."@"..session.host] = hosts[session.host].sessions[session.username];
 				end
 			end
 			if increment and sessions[resource] then