plugins.smacks: Remove some debugging code from resumption success handling, and fire a "resumed" event instead

Fri, 18 Mar 2011 21:42:49 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 18 Mar 2011 21:42:49 +0000
changeset 201
1fce24cb2c41
parent 200
4166213cc9bd
child 202
05d1a4751251

plugins.smacks: Remove some debugging code from resumption success handling, and fire a "resumed" event instead

plugins/smacks.lua file | annotate | diff | comparison | revisions
--- a/plugins/smacks.lua	Fri Mar 18 21:42:00 2011 +0000
+++ b/plugins/smacks.lua	Fri Mar 18 21:42:49 2011 +0000
@@ -65,7 +65,7 @@
 			end
 		elseif stanza.name == "resumed" then
 			stream:debug("Resumed successfully");
-			stream:send(verse.message{to="me@matthewwild.co.uk", type="chat"}:tag("body"):text("Hi again!"));
+			stream:event("resumed");
 		else
 			stream:warn("Don't know how to handle "..xmlns_sm.."/"..stanza.name);
 		end

mercurial