plugins/autosubscribe.lua@95b668d73ff9
plugins/autosubscribe.lua
Mon, 06 Dec 2021 11:26:37 +0000
- author
- Matthew Wild <mwild1@gmail.com>
- date
- Mon, 06 Dec 2021 11:26:37 +0000
- changeset 166
- 95b668d73ff9
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
rtbl_admin: Fix reason string (abuse is defined to be the most generic)
Would be nice to support reasons in the future (and text annotations)
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