Software /
code /
prosody
Diff
core/sessionmanager.lua @ 333:8d15b073fdbe
session:disconnect() -> session:close() for consistency with other Lua APIs
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 18 Nov 2008 19:44:54 +0000 |
parent | 332:51e130b5c8de |
child | 339:c6446bbfe40c |
line wrap: on
line diff
--- a/core/sessionmanager.lua Tue Nov 18 19:40:04 2008 +0000 +++ b/core/sessionmanager.lua Tue Nov 18 19:44:54 2008 +0000 @@ -113,7 +113,7 @@ 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