https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
247c894
)
jappixmini: don't tell addresses to other servers if plugin deactivated
author
Leberwurscht
<leberwurscht@hoegners.de>
Sun, 15 Apr 2012 20:13:18 +0000
(22:13 +0200)
committer
Leberwurscht
<leberwurscht@hoegners.de>
Sun, 15 Apr 2012 20:13:18 +0000
(22:13 +0200)
jappixmini/jappixmini.php
patch
|
blob
|
history
diff --git
a/jappixmini/jappixmini.php
b/jappixmini/jappixmini.php
index
b2de48b
..
b68114d
100644
(file)
--- 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');