aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-03-26 16:49:03 +0000
committerMatthew Wild <mwild1@gmail.com>2015-03-26 16:49:03 +0000
commit6c87dbadb1c9f96442f874dd78edd8b85abfb472 (patch)
tree5c9f629f0035697faa311531db3b3d0267e4f1e3 /core
parent0cbc9ecbecd3caf2bab74dd77abab53ca77691f6 (diff)
parenteacc284fd7299addca1a4f1a8332de6eab86480b (diff)
downloadprosody-6c87dbadb1c9f96442f874dd78edd8b85abfb472.tar.gz
prosody-6c87dbadb1c9f96442f874dd78edd8b85abfb472.zip
Merge 0.10->trunk
Diffstat (limited to 'core')
-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 };