change host to port
darcs-hash:20080623030930-84dde-9bfebd8ecec06f985fdb2a79536c652391855d13.gz
This commit is contained in:
		| @@ -32,13 +32,17 @@ require_once('xmpp.php'); | |||||||
| class XMPPDaemon { | class XMPPDaemon { | ||||||
|  |  | ||||||
| 	function 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); | 			$this->$attr = common_config('xmpp', $attr); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	function connect() { | 	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); | 							   $this->password, $this->resource); | ||||||
| 		if (!$this->conn) { | 		if (!$this->conn) { | ||||||
| 			return false; | 			return false; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user