plugins/autosubscribe.lua@eb5a04a9877a
plugins/autosubscribe.lua
Fri, 02 Oct 2020 17:02:37 +0200
- author
- Seve Ferrer <seve@delape.net>
- date
- Fri, 02 Oct 2020 17:02:37 +0200
- changeset 160
- eb5a04a9877a
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
plugins/groupchat.lua: Add support for muc passwords
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