From a8f6aafa43bd255ecd56a8bfb1b78a76e966f3f8 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 22 Feb 2007 19:32:00 +0000 Subject: [PATCH] small bugfix... git-svn-id: file:///svn/phpbb/trunk@7035 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_jabber.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/functions_jabber.php b/phpBB/includes/functions_jabber.php index b0a7e09c08..184a1f89a4 100644 --- a/phpBB/includes/functions_jabber.php +++ b/phpBB/includes/functions_jabber.php @@ -20,7 +20,7 @@ * last modified: 24.03.2004 13:01:53 * * Modified by phpBB Development Team -* version: v0.4.3a1 +* version: v0.4.3 * * @package phpBB3 */ @@ -59,6 +59,9 @@ class jabber var $connector; + var $version; + var $show_version; + /** * Constructor */ @@ -73,6 +76,9 @@ class jabber $this->enable_logging = true; $this->log_array = array(); + $this->version = '1.0'; + $this->show_version = false; + $this->packet_queue = array(); $this->iq_sleep_timer = $this->delay_disconnect = 1; @@ -113,7 +119,7 @@ class jabber if ($this->connector->open_socket($this->server, $this->port)) { $this->send_packet("\n"); - $this->send_packet("\n"); + $this->send_packet("show_version) ? " version='{$this->version}'" : '') . ">\n"); sleep(2); @@ -890,7 +896,7 @@ class jabber socket_set_blocking($this->connector->active_socket, $meta['blocked']); $this->send_packet("\n"); - $this->send_packet("\n"); + $this->send_packet("show_version) ? " version='{$this->version}'" : '') . ">\n"); sleep(2); if (!$this->_check_connected(true))