Changeset

1432:8a59a694a9c0

Automated merge with http://waqas.ath.cx:8000/
author Matthew Wild <mwild1@gmail.com>
date Sat, 27 Jun 2009 04:44:27 +0100
parents 1431:9fe9ba693f4a (current diff) 1423:5e72c3e1743a (diff)
children 1433:e7bd00e70973
files
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/net/xmppclient_listener.lua	Sat Jun 27 08:38:52 2009 +0500
+++ b/net/xmppclient_listener.lua	Sat Jun 27 04:44:27 2009 +0100
@@ -95,7 +95,7 @@
 		end
 		session.send("</stream:stream>");
 		session.conn.close();
-		xmppclient.disconnect(session.conn, "stream error");
+		xmppclient.disconnect(session.conn, reason.condition or reason or "session closed");
 	end
 end
 
@@ -136,7 +136,7 @@
 	local session = sessions[conn];
 	if session then
 		(session.log or log)("info", "Client disconnected: %s", err);
-		sm_destroy_session(session);
+		sm_destroy_session(session, err);
 		sessions[conn]  = nil;
 		session = nil;
 		collectgarbage("collect");
--- a/plugins/mod_message.lua	Sat Jun 27 08:38:52 2009 +0500
+++ b/plugins/mod_message.lua	Sat Jun 27 04:44:27 2009 +0100
@@ -67,3 +67,5 @@
 
 	return process_to_bare(stanza.attr.to or (origin.username..'@'..origin.host), origin, stanza);
 end);
+
+module:add_feature("msgoffline");