Comparison

plugins/smacks.lua @ 201:1fce24cb2c41

plugins.smacks: Remove some debugging code from resumption success handling, and fire a "resumed" event instead
author Matthew Wild <mwild1@gmail.com>
date Fri, 18 Mar 2011 21:42:49 +0000
parent 200:4166213cc9bd
child 202:05d1a4751251
comparison
equal deleted inserted replaced
200:4166213cc9bd 201:1fce24cb2c41
63 stream.resumption_token = stanza.attr.id; 63 stream.resumption_token = stanza.attr.id;
64 stream:hook("disconnected", on_disconnect, 100); 64 stream:hook("disconnected", on_disconnect, 100);
65 end 65 end
66 elseif stanza.name == "resumed" then 66 elseif stanza.name == "resumed" then
67 stream:debug("Resumed successfully"); 67 stream:debug("Resumed successfully");
68 stream:send(verse.message{to="me@matthewwild.co.uk", type="chat"}:tag("body"):text("Hi again!")); 68 stream:event("resumed");
69 else 69 else
70 stream:warn("Don't know how to handle "..xmlns_sm.."/"..stanza.name); 70 stream:warn("Don't know how to handle "..xmlns_sm.."/"..stanza.name);
71 end 71 end
72 end 72 end
73 73