Add configuration check. Need 'server', 'port', 'user' and 'password' to be defined (not valid, just defined).
This commit is contained in:
parent
f175512748
commit
1b39f89b96
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user