Comparison

main.lua @ 2:9bb397205f26

Working presence!
author matthew
date Sun, 24 Aug 2008 04:34:01 +0000
parent 1:b8787e859fd2
child 4:09c3845ed442
comparison
equal deleted inserted replaced
1:b8787e859fd2 2:9bb397205f26
130 session.stanza_dispatch = init_stanza_dispatcher(session); 130 session.stanza_dispatch = init_stanza_dispatcher(session);
131 session.xml_handlers = init_xmlhandlers(session); 131 session.xml_handlers = init_xmlhandlers(session);
132 session.parser = lxp.new(session.xml_handlers, ":"); 132 session.parser = lxp.new(session.xml_handlers, ":");
133 133
134 function session.disconnect(err) 134 function session.disconnect(err)
135 hosts[session.host].sessions[session.username] = nil;
136 session = nil;
135 print("Disconnected: "..err); 137 print("Disconnected: "..err);
136 end 138 end
137 end 139 end
138 if data then 140 if data then
139 session.parser:parse(data); 141 session.parser:parse(data);