jappixmini: don't tell addresses to other servers if plugin deactivated

This commit is contained in:
Leberwurscht 2012-04-15 22:13:18 +02:00
parent 247c894ed5
commit cc1f35c61b

View file

@ -149,6 +149,10 @@ function jappixmini_init(&$a) {
} 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
try {
$username = get_pconfig($uid, 'jappixmini', 'username');