init.lua

changeset 18
d7cd7ce93132
parent 17
9fe723988f3c
child 24
330643a82a1d
--- 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);

mercurial