Software /
code /
verse
Diff
plugins/pubsub.lua @ 395:e86144a4eaa1
plugins: Cleanup [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 03 Sep 2015 22:41:27 +0200 |
parent | 348:34b878d58948 |
child | 437:2762abec4c63 |
line wrap: on
line diff
--- a/plugins/pubsub.lua Thu Sep 03 21:46:57 2015 +0200 +++ b/plugins/pubsub.lua Thu Sep 03 22:41:27 2015 +0200 @@ -1,12 +1,11 @@ local verse = require "verse"; -local jid_bare = require "util.jid".bare; local t_insert = table.insert; local xmlns_pubsub = "http://jabber.org/protocol/pubsub"; local xmlns_pubsub_owner = "http://jabber.org/protocol/pubsub#owner"; local xmlns_pubsub_event = "http://jabber.org/protocol/pubsub#event"; -local xmlns_pubsub_errors = "http://jabber.org/protocol/pubsub#errors"; +-- local xmlns_pubsub_errors = "http://jabber.org/protocol/pubsub#errors"; local pubsub = {}; local pubsub_mt = { __index = pubsub }; @@ -213,7 +212,7 @@ if options ~= nil then error("Subscription configuration is not implemented yet."); end - self.stream:send_iq(pubsub_iq("set", self.service, nil, "subscribe", self.node, jid, id) + self.stream:send_iq(pubsub_iq("set", self.service, nil, "subscribe", self.node, jid) , callback); end