]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change to use SVN version of XMPPHP
authorEvan Prodromou <evan@dev.controlezvous.ca>
Sat, 5 Jul 2008 17:40:45 +0000 (13:40 -0400)
committerEvan Prodromou <evan@dev.controlezvous.ca>
Sat, 5 Jul 2008 17:40:45 +0000 (13:40 -0400)
darcs-hash:20080705174045-d018c-84a84f72a3f371fe767ccca890d67be3b8a127af.gz

lib/jabber.php

index 8f8d6a4d8c37c04ca177bd85bf1e51587e3b59c5..9b6d1c71a640cae4b17b4f53d8f0f1011638305c 100644 (file)
@@ -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');