diff -r d7cd7ce93132 -r a698d64fc929 plugins/autosubscribe.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/autosubscribe.lua Thu May 20 14:37:28 2010 +0100 @@ -0,0 +1,8 @@ + +function riddim.plugins.autosubscribe(bot) + bot:hook("presence", function (presence) + if presence.stanza.attr.type ~= 'subscribe' then return nil; end + bot:send_presence(presence.sender.jid, 'subscribed'); + return false; + end); +end