Add configuration check. Need 'server', 'port', 'user' and 'password' to be defined (not valid, just defined).

This commit is contained in:
Jean Baptiste Favre 2012-08-26 23:20:03 +02:00
parent f175512748
commit 1b39f89b96

View File

@ -442,11 +442,17 @@ class XmppPlugin extends ImPlugin
*/ */
function onGetValidDaemons($daemons) function onGetValidDaemons($daemons)
{ {
array_push( if( isset($this->server) &&
$daemons, isset($this->port) &&
INSTALLDIR isset($this->user) &&
. '/scripts/imdaemon.php' isset($this->password) ){
);
array_push(
$daemons,
INSTALLDIR
. '/scripts/imdaemon.php'
);
}
return true; return true;
} }