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)
|
function onGetValidDaemons($daemons)
|
||||||
{
|
{
|
||||||
|
if( isset($this->server) &&
|
||||||
|
isset($this->port) &&
|
||||||
|
isset($this->user) &&
|
||||||
|
isset($this->password) ){
|
||||||
|
|
||||||
array_push(
|
array_push(
|
||||||
$daemons,
|
$daemons,
|
||||||
INSTALLDIR
|
INSTALLDIR
|
||||||
. '/scripts/imdaemon.php'
|
. '/scripts/imdaemon.php'
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user