aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-18 18:49:54 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-18 18:49:54 +0100
commit741a5cf67bacc08629d548bb72531b6644369d93 (patch)
tree4ce78a17e12223b846c611dec942981a2e3edf06 /net
parent331d09deb3ba434b9ae73360f6e97f44a110a0cd (diff)
downloadprosody-741a5cf67bacc08629d548bb72531b6644369d93.tar.gz
prosody-741a5cf67bacc08629d548bb72531b6644369d93.zip
xmppclient_listener: Use error text as disconnect reason if there is any
Diffstat (limited to 'net')
-rw-r--r--net/xmppclient_listener.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua
index 35838692..cc65ff75 100644
--- a/net/xmppclient_listener.lua
+++ b/net/xmppclient_listener.lua
@@ -95,7 +95,7 @@ local function session_close(session, reason)
end
session.send("</stream:stream>");
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