# HG changeset patch # User Chris # Date 1274362462 -3600 # Node ID 9fe723988f3cb90854685a2b6ba899d5ddbc146e # Parent ae69cea97598a93339c1ca6cd9bc61179fa64a48 Fire started event at the end of startup routine diff -r ae69cea97598 -r 9fe723988f3c init.lua --- 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)