Comparison

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
comparison
equal deleted inserted replaced
332:51e130b5c8de 333:8d15b073fdbe
111 send("<?xml version='1.0'?>"); 111 send("<?xml version='1.0'?>");
112 send(format("<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='%s' from='%s' version='1.0'>", session.streamid, session.host)); 112 send(format("<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='%s' from='%s' version='1.0'>", session.streamid, session.host));
113 113
114 if not hosts[session.host] then 114 if not hosts[session.host] then
115 -- We don't serve this host... 115 -- We don't serve this host...
116 session:disconnect{ condition = "host-unknown", text = "This server does not serve "..tostring(session.host)}; 116 session:close{ condition = "host-unknown", text = "This server does not serve "..tostring(session.host)};
117 return; 117 return;
118 end 118 end
119 119
120 120
121 local features = {}; 121 local features = {};