change host to port

darcs-hash:20080623030930-84dde-9bfebd8ecec06f985fdb2a79536c652391855d13.gz
This commit is contained in:
Evan Prodromou 2008-06-22 23:09:30 -04:00
parent 8ac3474361
commit b05ebcb272

View File

@ -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;