]> git.mxchange.org Git - friendica-addons.git/commitdiff
jappixmini: don't tell addresses to other servers if plugin deactivated
authorLeberwurscht <leberwurscht@hoegners.de>
Sun, 15 Apr 2012 20:13:18 +0000 (22:13 +0200)
committerLeberwurscht <leberwurscht@hoegners.de>
Sun, 15 Apr 2012 20:13:18 +0000 (22:13 +0200)
jappixmini/jappixmini.php

index b2de48b45d9afec3b4d8c3b406fa70c0a9ac5ddc..b68114d1d2296020643f7286cedd772491b88e51 100644 (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');