aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-18 19:44:54 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-18 19:44:54 +0000
commit99b617b8b6839a496ee26033b1b613a9f11e8f62 (patch)
treebd18151471ccc48cdd2ff90e986a75c864990484 /core/sessionmanager.lua
parent64e57b5001ecac19c1d7ffb2236ee3f7b71c3b1c (diff)
downloadprosody-99b617b8b6839a496ee26033b1b613a9f11e8f62.tar.gz
prosody-99b617b8b6839a496ee26033b1b613a9f11e8f62.zip
session:disconnect() -> session:close() for consistency with other Lua APIs
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 76461b8a..74edb86c 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -113,7 +113,7 @@ function streamopened(session, attr)
if not hosts[session.host] then
-- We don't serve this host...
- session:disconnect{ condition = "host-unknown", text = "This server does not serve "..tostring(session.host)};
+ session:close{ condition = "host-unknown", text = "This server does not serve "..tostring(session.host)};
return;
end