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 b2de48b..b68114d 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');