plugins/autosubscribe.lua@be3b031b986d
plugins/autosubscribe.lua
Thu, 20 May 2010 17:36:47 +0100
- author
- Matthew Wild <mwild1@gmail.com>
- date
- Thu, 20 May 2010 17:36:47 +0100
- changeset 21
- be3b031b986d
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
plugins.tell: Remove excess quote (thanks Florob)
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