jappixmini: don't tell addresses to other servers if plugin deactivated
parent
247c894ed5
commit
cc1f35c61b
|
@ -149,6 +149,10 @@ function jappixmini_init(&$a) {
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// do not return an address if user deactivated plugin
|
||||||
|
$activated = get_pconfig($uid, 'jappixmini', 'activate');
|
||||||
|
if (!$activated) killme();
|
||||||
|
|
||||||
// return the requested Jabber address
|
// return the requested Jabber address
|
||||||
try {
|
try {
|
||||||
$username = get_pconfig($uid, 'jappixmini', 'username');
|
$username = get_pconfig($uid, 'jappixmini', 'username');
|
||||||
|
|
Loading…
Reference in New Issue