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 }; |