The jappixmini addon #48

Merged
Leberwurscht merged 42 commits from master into master 2012-04-20 08:48:13 +02:00
Showing only changes of commit cc1f35c61b - Show all commits

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

Leberwurscht 2012-04-15 22:13:18 +02:00

View file

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