plugins/autosubscribe.lua@aca019044c51
plugins/autosubscribe.lua
Mon, 21 Feb 2011 01:22:42 +0100
- author
- Kim Alvefur <zash@zash.se>
- date
- Mon, 21 Feb 2011 01:22:42 +0100
- changeset 61
- aca019044c51
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
plugins.slap: Remove special handling for actions
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