aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-06-02 19:08:36 +0100
committerMatthew Wild <mwild1@gmail.com>2009-06-02 19:08:36 +0100
commitd6d2af95bdf8423fe007f17079be8cc3c6c7f02d (patch)
tree9480197d49ca861a61ad9a382943a27fcab886f0
parent84bdea076425eb0f109eb38c479ea439bc7ba6f0 (diff)
downloadprosody-d6d2af95bdf8423fe007f17079be8cc3c6c7f02d.tar.gz
prosody-d6d2af95bdf8423fe007f17079be8cc3c6c7f02d.zip
sessionmanager: It's username@host, not host@username :)
-rw-r--r--core/sessionmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index bca887da..163c6799 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -105,7 +105,7 @@ function bind_resource(session, resource)
if not hosts[session.host].sessions[session.username] then
local sessions = { sessions = {} };
hosts[session.host].sessions[session.username] = sessions;
- bare_sessions[session.host..'@'..session.username] = sessions;
+ bare_sessions[session.username..'@'..session.host] = sessions;
else
local sessions = hosts[session.host].sessions[session.username].sessions;
local limit = config_get(session.host, "core", "max_resources") or 10;