aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-03-26 16:48:39 +0000
committerMatthew Wild <mwild1@gmail.com>2015-03-26 16:48:39 +0000
commiteacc284fd7299addca1a4f1a8332de6eab86480b (patch)
tree96ae640eaeaadbeebeab641873a8a65ea1e8d743 /core/sessionmanager.lua
parent45e1b4d1da5e5c9825e23368d8de92c4c5c390de (diff)
parent382cb50f5196dd4a935a09f5515904820a3ea286 (diff)
downloadprosody-eacc284fd7299addca1a4f1a8332de6eab86480b.tar.gz
prosody-eacc284fd7299addca1a4f1a8332de6eab86480b.zip
Merge 0.9->0.10
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 476de931..8767e869 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -114,7 +114,7 @@ end
-- returns nil, err_type, err, err_message on failure
function bind_resource(session, resource)
if not session.username then return nil, "auth", "not-authorized", "Cannot bind resource before authentication"; end
- if session.resource then return nil, "cancel", "already-bound", "Cannot bind multiple resources on a single connection"; end
+ if session.resource then return nil, "cancel", "not-allowed", "Cannot bind multiple resources on a single connection"; end
-- We don't support binding multiple resources
local event_payload = { session = session, resource = resource };