plugins/autosubscribe.lua@08670c0cbb65
plugins/autosubscribe.lua
Tue, 25 Mar 2014 18:23:58 +0100
- author
- Kim Alvefur <zash@zash.se>
- date
- Tue, 25 Mar 2014 18:23:58 +0100
- changeset 112
- 08670c0cbb65
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
plugins.xkcd2: I accidentally another XKCD plugin from scratch
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