From: Leberwurscht Date: Sun, 15 Apr 2012 20:13:18 +0000 (+0200) Subject: jappixmini: don't tell addresses to other servers if plugin deactivated X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc1f35c61bc0adb65af99711e280320610059c0d;p=friendica-addons.git jappixmini: don't tell addresses to other servers if plugin deactivated --- 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');