summaryrefslogtreecommitdiff
path: root/lib/jabber.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jabber.php')
-rw-r--r--lib/jabber.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/jabber.php b/lib/jabber.php
index a0f5080d0..e9968b78f 100644
--- a/lib/jabber.php
+++ b/lib/jabber.php
@@ -205,6 +205,9 @@ function jabber_special_presence($type, $to=NULL, $show=NULL, $status=NULL) {
}
function jabber_broadcast_notice($notice) {
+ if (!common_config('xmpp', 'enabled')) {
+ return true;
+ }
$profile = Profile::staticGet($notice->profile_id);
if (!$profile) {
common_log(LOG_WARNING, 'Refusing to broadcast notice with ' .