From bdfe3ca524d3186532ea9433f70ab83c665e3f80 Mon Sep 17 00:00:00 2001 From: Mike Cochrane Date: Tue, 22 Jul 2008 04:26:53 -0400 Subject: Only try sending xmpp notices if xmpp is enabled darcs-hash:20080722082653-533db-14e277869986f0c4f0df0f84eec9c5d39626956d.gz --- lib/jabber.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/jabber.php') 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 ' . -- cgit v1.2.3-54-g00ecf