plugins/autosubscribe.lua@0f17e574b6bb
plugins/autosubscribe.lua
Mon, 08 Nov 2010 22:41:24 +0100
- author
- Kim Alvefur <zash@zash.se>
- date
- Mon, 08 Nov 2010 22:41:24 +0100
- changeset 35
- 0f17e574b6bb
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
plugins.commands: Enable commands to be directed to the bots nick
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