Diff

main.lua @ 2:9bb397205f26

Working presence!
author matthew
date Sun, 24 Aug 2008 04:34:01 +0000
parent 1:b8787e859fd2
child 4:09c3845ed442
line wrap: on
line diff
--- a/main.lua	Sun Aug 24 01:51:02 2008 +0000
+++ b/main.lua	Sun Aug 24 04:34:01 2008 +0000
@@ -132,6 +132,8 @@
 			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