plugins/autosubscribe.lua

Thu, 11 Jun 2020 15:28:18 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 11 Jun 2020 15:28:18 +0100
changeset 153
23b0ddf14e12
parent 19
a698d64fc929
permissions
-rw-r--r--

xeps: Update URLs (but still doesn't work)


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

mercurial