plugins/autosubscribe.lua@00ad6fe8975e
plugins/autosubscribe.lua
Sun, 17 Jul 2011 02:03:21 +0200
- author
- God of Dice@mf-nb
- date
- Sun, 17 Jul 2011 02:03:21 +0200
- changeset 78
- 00ad6fe8975e
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
plugins.xkcd: reformat code
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