# HG changeset patch # User Matthew Wild # Date 1247939394 -3600 # Node ID a8c14a350de56ee7a99383dce3b54c8b81608667 # Parent 831649bb19221e96db2ac9e7ca118fad36b3376d xmppclient_listener: Use error text as disconnect reason if there is any diff -r 831649bb1922 -r a8c14a350de5 net/xmppclient_listener.lua --- a/net/xmppclient_listener.lua Sat Jul 18 18:37:06 2009 +0100 +++ b/net/xmppclient_listener.lua Sat Jul 18 18:49:54 2009 +0100 @@ -95,7 +95,7 @@ end session.send(""); session.conn.close(); - xmppclient.disconnect(session.conn, (reason and reason.condition) or reason or "session closed"); + xmppclient.disconnect(session.conn, (reason and (reason.text or reason.condition)) or reason or "session closed"); end end