plugins/autosubscribe.lua@1c2b8d10ceed
plugins/autosubscribe.lua
Mon, 06 Dec 2021 11:27:36 +0000
- author
- Matthew Wild <mwild1@gmail.com>
- date
- Mon, 06 Dec 2021 11:27:36 +0000
- changeset 168
- 1c2b8d10ceed
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
rtbl_admin: Add access control around commands
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