We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 1b39f89b authored by Jean Baptiste Favre's avatar Jean Baptiste Favre

Add configuration check. Need 'server', 'port', 'user' and 'password' to be...

Add configuration check. Need 'server', 'port', 'user' and 'password' to be defined (not valid, just defined).
parent f1755127
......@@ -442,11 +442,17 @@ class XmppPlugin extends ImPlugin
*/
function onGetValidDaemons($daemons)
{
array_push(
$daemons,
INSTALLDIR
. '/scripts/imdaemon.php'
);
if( isset($this->server) &&
isset($this->port) &&
isset($this->user) &&
isset($this->password) ){
array_push(
$daemons,
INSTALLDIR
. '/scripts/imdaemon.php'
);
}
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment