diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common.php | 1 | ||||
-rw-r--r-- | lib/jabber.php | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/common.php b/lib/common.php index 13c7d0d45..e4c8e9032 100644 --- a/lib/common.php +++ b/lib/common.php @@ -86,6 +86,7 @@ $config = 'server' => 'INVALID SERVER', 'port' => 5222, 'user' => 'update', + 'encryption' => true, 'resource' => 'uniquename', 'password' => 'blahblahblah', 'host' => NULL, # only set if != server diff --git a/lib/jabber.php b/lib/jabber.php index cba7f62c4..01ec8da43 100644 --- a/lib/jabber.php +++ b/lib/jabber.php @@ -82,7 +82,8 @@ function jabber_connect($resource=NULL) { XMPPHP_Log::LEVEL_VERBOSE : NULL ); $conn->autoSubscribe(); - + $conn->useEncryption(common_config('xmpp', 'encryption')); + if (!$conn) { return false; } |