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

pull/48/head
Leberwurscht 2012-04-15 22:13:18 +02:00
parent 247c894ed5
commit cc1f35c61b
1 changed files with 4 additions and 0 deletions

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');