plugins/autosubscribe.lua@aa797b0a98e7
plugins/autosubscribe.lua
Sat, 13 Nov 2010 20:24:45 +0100
- author
- Kim Alvefur <zash@zash.se>
- date
- Sat, 13 Nov 2010 20:24:45 +0100
- changeset 45
- aa797b0a98e7
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
plugins.groupchat: Add methods for changing affiliation and role
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