Mercurial > xmpp2smtp
comparison xmpp2smtp.js @ 6:5cf8a08ef7fe
Fix errors in disco#info.
author | Sonny Piers <sonny.piers@gmail.com> |
---|---|
date | Wed, 15 Jun 2011 12:25:18 +0200 |
parents | c1a19866a233 |
children |
comparison
equal
deleted
inserted
replaced
5:c1a19866a233 | 6:5cf8a08ef7fe |
---|---|
11 //~ info.push(new xmpp.Element("feature", {"var": "http://jabber.org/protocol/caps"})); | 11 //~ info.push(new xmpp.Element("feature", {"var": "http://jabber.org/protocol/caps"})); |
12 //~ info.push(new xmpp.Element("feature", {"var": "http://jabber.org/protocol/commands"})); | 12 //~ info.push(new xmpp.Element("feature", {"var": "http://jabber.org/protocol/commands"})); |
13 info.push(new xmpp.Element("feature", {"var": "http://jabber.org/protocol/disco#info"})); | 13 info.push(new xmpp.Element("feature", {"var": "http://jabber.org/protocol/disco#info"})); |
14 info.push(new xmpp.Element("feature", {"var": "jabber:iq:register"})); | 14 info.push(new xmpp.Element("feature", {"var": "jabber:iq:register"})); |
15 info.push(new xmpp.Element("feature", {"var": "jabber:iq:version"})); | 15 info.push(new xmpp.Element("feature", {"var": "jabber:iq:version"})); |
16 info.push(new xmpp.Element("identity", {category: "gateway", type: "irc", name: config.XMPP.name})); | 16 info.push(new xmpp.Element("feature", {"var": "jabber:iq:gateway"})); |
17 info.push(new xmpp.Element("identity", {category: "gateway", type: "smtp", name: config.XMPP.name})); | |
17 | 18 |
18 var cl = new xmpp.Component({ | 19 var cl = new xmpp.Component({ |
19 jid: config.XMPP.jid, | 20 jid: config.XMPP.jid, |
20 password: config.XMPP.password, | 21 password: config.XMPP.password, |
21 host: config.XMPP.host, | 22 host: config.XMPP.host, |