summaryrefslogtreecommitdiff
path: root/lib/jabber.php
diff options
context:
space:
mode:
authorMike Cochrane <mikec@mikenz.geek.nz>2008-07-22 04:26:53 -0400
committerMike Cochrane <mikec@mikenz.geek.nz>2008-07-22 04:26:53 -0400
commitbdfe3ca524d3186532ea9433f70ab83c665e3f80 (patch)
treec10feceabb9b42b842bdd88de51dd25fd5fba7e0 /lib/jabber.php
parentb48e3bcf59b8de3b015d6b996b917b9127b45259 (diff)
Only try sending xmpp notices if xmpp is enabled
darcs-hash:20080722082653-533db-14e277869986f0c4f0df0f84eec9c5d39626956d.gz
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 ' .