From b05ebcb272e64d59257133ebba876f9d9fdbdceb Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 22 Jun 2008 23:09:30 -0400 Subject: [PATCH] change host to port darcs-hash:20080623030930-84dde-9bfebd8ecec06f985fdb2a79536c652391855d13.gz --- xmppdaemon.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xmppdaemon.php b/xmppdaemon.php index e11e5f5ad6..eab79a0314 100644 --- a/xmppdaemon.php +++ b/xmppdaemon.php @@ -32,13 +32,17 @@ require_once('xmpp.php'); class XMPPDaemon { function XMPPDaemon() { - foreach (array('server', 'port', 'user', 'password', 'resource') as $attr) { + static $attrs = array('server', 'port', 'user', 'password', + 'resource'); + + foreach ($attrs as $attr) + { $this->$attr = common_config('xmpp', $attr); } } function connect() { - $this->conn = new XMPP($this->host, $this->port, $this->user, + $this->conn = new XMPP($this->server, $this->port, $this->user, $this->password, $this->resource); if (!$this->conn) { return false; -- 2.39.5