changeset 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 1776fb122b80
files xmpp2smtp.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/xmpp2smtp.js
+++ b/xmpp2smtp.js
@@ -13,7 +13,8 @@ var info = [];
 info.push(new xmpp.Element("feature", {"var": "http://jabber.org/protocol/disco#info"}));
 info.push(new xmpp.Element("feature", {"var": "jabber:iq:register"}));
 info.push(new xmpp.Element("feature", {"var": "jabber:iq:version"}));
-info.push(new xmpp.Element("identity", {category: "gateway", type: "irc", name: config.XMPP.name}));
+info.push(new xmpp.Element("feature", {"var": "jabber:iq:gateway"}));
+info.push(new xmpp.Element("identity", {category: "gateway", type: "smtp", name: config.XMPP.name}));
 
 var cl = new xmpp.Component({
 	jid: config.XMPP.jid,