init.lua

changeset 8
9663866ca475
parent 6
b0fec41e695b
child 11
7bb53dcf93d4
equal deleted inserted replaced
7:59129c1e4e07 8:9663866ca475
17 -- self.conn is ready for stanzas 17 -- self.conn is ready for stanzas
18 function riddim_mt:start() 18 function riddim_mt:start()
19 self:add_plugin("groupchat"); 19 self:add_plugin("groupchat");
20 self:add_plugin("commands"); 20 self:add_plugin("commands");
21 self:add_plugin("ping"); 21 self:add_plugin("ping");
22 self:add_plugin("tell");
22 self:event("started"); 23 self:event("started");
23 self.stream:hook("stanza", function (stanza) 24 self.stream:hook("stanza", function (stanza)
24 local body = stanza:get_child("body"); 25 local body = stanza:get_child("body");
25 local event = { 26 local event = {
26 sender = { jid = stanza.attr.from }; 27 sender = { jid = stanza.attr.from };

mercurial