init.lua

changeset 17
9fe723988f3c
parent 16
ae69cea97598
child 18
d7cd7ce93132
--- a/init.lua	Thu May 20 14:33:41 2010 +0100
+++ b/init.lua	Thu May 20 14:34:22 2010 +0100
@@ -16,7 +16,6 @@
 
 -- self.conn is ready for stanzas
 function riddim_mt:start()
-	self:event("started");
 	self.stream:hook("stanza", function (stanza)
 		local body = stanza:get_child("body");
 		local event = {
@@ -49,6 +48,7 @@
 		end
 		return ret;
 	end, 1);
+	self:event("started");
 end
 
 function riddim_mt:send(s)

mercurial