Software /
code /
prosody
Diff
plugins/mod_console.lua @ 1823:7c3ec7ac6316
Merge with 0.5
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 24 Sep 2009 23:47:16 +0100 |
parent | 1799:c9c1987430c6 |
parent | 1821:05ed826da89b |
child | 1908:27c1c6e6c583 |
line wrap: on
line diff
--- a/plugins/mod_console.lua Fri Sep 25 03:23:31 2009 +0500 +++ b/plugins/mod_console.lua Thu Sep 24 23:47:16 2009 +0100 @@ -515,7 +515,7 @@ if not session then print("No outgoing connection from "..from.." to "..to) else - s2smanager.destroy_session(session); + (session.close or s2smanager.destroy_session)(session); count = count + 1; print("Closed outgoing session from "..from.." to "..to); end @@ -523,7 +523,7 @@ -- Is an incoming connection for session in pairs(incoming_s2s) do if session.to_host == to and session.from_host == from then - s2smanager.destroy_session(session); + (session.close or s2smanager.destroy_session)(session); count = count + 1; end end