Software /
code /
verse
Comparison
plugins/pubsub.lua @ 165:8c67ea868c06
plugins.pubsub: Return true to indicate success loading
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 15 Dec 2010 14:50:10 +0000 |
parent | 159:88cc513e81c8 |
child | 193:fa6e1e65cb3c |
comparison
equal
deleted
inserted
replaced
164:d862093d9f91 | 165:8c67ea868c06 |
---|---|
22 }); | 22 }); |
23 end | 23 end |
24 end | 24 end |
25 end | 25 end |
26 end); | 26 end); |
27 return true; | |
27 end | 28 end |
28 | 29 |
29 function pubsub:subscribe(server, node, jid, callback) | 30 function pubsub:subscribe(server, node, jid, callback) |
30 self.stream:send_iq(verse.iq({ to = server, type = "set" }) | 31 self.stream:send_iq(verse.iq({ to = server, type = "set" }) |
31 :tag("pubsub", { xmlns = xmlns_pubsub }) | 32 :tag("pubsub", { xmlns = xmlns_pubsub }) |