summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-22 23:09:30 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-22 23:09:30 -0400
commitb05ebcb272e64d59257133ebba876f9d9fdbdceb (patch)
tree9e47e685faa4b891dce097ed491269b11796ef67
parent8ac3474361a62b58993b4d3a2e23b53aff843532 (diff)
change host to port
darcs-hash:20080623030930-84dde-9bfebd8ecec06f985fdb2a79536c652391855d13.gz
-rw-r--r--xmppdaemon.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmppdaemon.php b/xmppdaemon.php
index e11e5f5ad..eab79a031 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;