diff -r 9fe723988f3c -r d7cd7ce93132 init.lua --- a/init.lua Thu May 20 14:34:22 2010 +0100 +++ b/init.lua Thu May 20 14:36:14 2010 +0100 @@ -67,6 +67,10 @@ self:send(st.message({ to = to, type = type }):tag("body"):text(text)); end +function riddim_mt:send_presence(to, type) + self:send(st.presence({ to = to, type = type })); +end + function riddim_mt:add_plugin(name) if not self.plugins[name] then self.plugins[name] = require("riddim.plugins."..name);