diff --git a/lib/jabber.php b/lib/jabber.php index a0f5080d0f..e9968b78f8 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 ' .