Commit 61224df9 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Improved OS description in returned packets.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6543 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4ff6baa6
......@@ -3,7 +3,7 @@
* $Revision: 684 $
* $Date: 2004-12-11 23:30:40 -0300 (Sat, 11 Dec 2004) $
*
* Copyright (C) 2004 Jive Software. All rights reserved.
* Copyright (C) 2007 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Public License (GPL),
* a copy of which is included in this distribution.
......@@ -11,17 +11,17 @@
package org.jivesoftware.wildfire.handler;
import org.jivesoftware.wildfire.disco.ServerFeaturesProvider;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import org.dom4j.QName;
import org.jivesoftware.admin.AdminConsole;
import org.jivesoftware.wildfire.IQHandlerInfo;
import org.jivesoftware.wildfire.PacketException;
import org.jivesoftware.admin.AdminConsole;
import org.jivesoftware.wildfire.disco.ServerFeaturesProvider;
import org.xmpp.packet.IQ;
import java.util.ArrayList;
import java.util.Iterator;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import org.dom4j.QName;
import org.xmpp.packet.IQ;
/**
* Implements the TYPE_IQ jabber:iq:version protocol (version info). Allows
......@@ -41,7 +41,7 @@ public class IQVersionHandler extends IQHandler implements ServerFeaturesProvide
if (bodyElement == null) {
bodyElement = DocumentHelper.createElement(QName.get("query", "jabber:iq:version"));
bodyElement.addElement("name").setText(AdminConsole.getAppName());
bodyElement.addElement("os").setText("Java 5");
bodyElement.addElement("os").setText("Java " + System.getProperty("java.version"));
bodyElement.addElement("version");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment