summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@dev.controlezvous.ca>2008-07-05 13:40:45 -0400
committerEvan Prodromou <evan@dev.controlezvous.ca>2008-07-05 13:40:45 -0400
commitec76d448de9b38c03aa61f8112e2d4ce8f7aee79 (patch)
treeb00ac28d78d1c930769e27a8c315c00a2f52be48
parent1bdd1582729919c8f05a149f8ecc2c492162b026 (diff)
change to use SVN version of XMPPHP
darcs-hash:20080705174045-d018c-84a84f72a3f371fe767ccca890d67be3b8a127af.gz
-rw-r--r--lib/jabber.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/jabber.php b/lib/jabber.php
index 8f8d6a4d8..9b6d1c71a 100644
--- a/lib/jabber.php
+++ b/lib/jabber.php
@@ -19,7 +19,7 @@
if (!defined('LACONICA')) { exit(1); }
-require_once('xmpp.php');
+require_once('XMPPHP/XMPP.php');
function jabber_valid_base_jid($jid) {
# Cheap but effective
@@ -44,7 +44,7 @@ function jabber_daemon_address() {
function jabber_connect($resource=NULL) {
static $conn = NULL;
if (!$conn) {
- $conn = new XMPP(common_config('xmpp', 'host') ?
+ $conn = new XMPPHP_XMPP(common_config('xmpp', 'host') ?
common_config('xmpp', 'host') :
common_config('xmpp', 'server'),
common_config('xmpp', 'port'),
@@ -58,7 +58,7 @@ function jabber_connect($resource=NULL) {
return false;
}
$conn->connect(true); # true = persistent connection
- if ($conn->disconnected) {
+ if ($conn->isDisconnected()) {
return false;
}
$conn->processUntil('session_start');