aboutsummaryrefslogtreecommitdiffstats
path: root/main.lua
diff options
context:
space:
mode:
authormatthew <devnull@localhost>2008-08-24 04:34:01 +0000
committermatthew <devnull@localhost>2008-08-24 04:34:01 +0000
commitb7e9b10cced42ad969011b3d906b2c13bd3de20e (patch)
treef2f8fa58f681e26d47cbeb9361257c68271c7ac2 /main.lua
parent78739d9638b857bf5c8ce249036818a92eceae46 (diff)
downloadprosody-b7e9b10cced42ad969011b3d906b2c13bd3de20e.tar.gz
prosody-b7e9b10cced42ad969011b3d906b2c13bd3de20e.zip
Working presence!
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 41d812bc..0df6bbd1 100644
--- a/main.lua
+++ b/main.lua
@@ -132,6 +132,8 @@ function handler(conn, data, err)
session.parser = lxp.new(session.xml_handlers, ":");
function session.disconnect(err)
+ hosts[session.host].sessions[session.username] = nil;
+ session = nil;
print("Disconnected: "..err);
end
end