From cc1f35c61bc0adb65af99711e280320610059c0d Mon Sep 17 00:00:00 2001 From: Leberwurscht Date: Sun, 15 Apr 2012 22:13:18 +0200 Subject: [PATCH] jappixmini: don't tell addresses to other servers if plugin deactivated --- jappixmini/jappixmini.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index b2de48b4..b68114d1 100644 --- a/jappixmini/jappixmini.php +++ b/jappixmini/jappixmini.php @@ -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'); -- 2.39.5