plugins/autosubscribe.lua@de10599d1ed4
plugins/autosubscribe.lua
Mon, 17 Sep 2018 14:26:35 +0100
- author
- Matthew Wild <mwild1@gmail.com>
- date
- Mon, 17 Sep 2018 14:26:35 +0100
- changeset 149
- de10599d1ed4
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
init.lua: Allow override of default config path
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