summaryrefslogtreecommitdiff
path: root/xmppdaemon.php
diff options
context:
space:
mode:
Diffstat (limited to 'xmppdaemon.php')
-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;