plugins/autosubscribe.lua@1b934a878e84
plugins/autosubscribe.lua
Fri, 25 Mar 2011 19:20:14 +0100
- author
- Florian Zeitz <florob@babelmonkeys.de>
- date
- Fri, 25 Mar 2011 19:20:14 +0100
- changeset 75
- 1b934a878e84
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
plugins.xeps: Fix pattern used to determine whether the user requested an example
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