plugins/autosubscribe.lua@f056ad661521
plugins/autosubscribe.lua
Fri, 11 Jun 2010 01:12:01 +0100
- author
- Hubert Chathi <hubert@uhoreg.ca>
- date
- Fri, 11 Jun 2010 01:12:01 +0100
- changeset 26
- f056ad661521
- parent 19
-
a698d64fc929
- permissions
- -rw-r--r--
plugins.simple_commands: Plugin for making simple commands
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