plugins/autosubscribe.lua@619b1b9c16bc
plugins/autosubscribe.lua
Fri, 07 Aug 2020 12:26:15 +0100
- author
- Matthew Wild <mwild1@gmail.com>
- date
- Fri, 07 Aug 2020 12:26:15 +0100
- changeset 156
- 619b1b9c16bc
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
config.docker.lua: Add to repo, used by default for Docker images
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