]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Only try sending xmpp notices if xmpp is enabled
authorMike Cochrane <mikec@mikenz.geek.nz>
Tue, 22 Jul 2008 08:26:53 +0000 (04:26 -0400)
committerMike Cochrane <mikec@mikenz.geek.nz>
Tue, 22 Jul 2008 08:26:53 +0000 (04:26 -0400)
darcs-hash:20080722082653-533db-14e277869986f0c4f0df0f84eec9c5d39626956d.gz

lib/jabber.php

index a0f5080d0fb9faeb641010704a3949eee606d02f..e9968b78f8155328db43f91e1daf96843e7cae66 100644 (file)
@@ -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 ' .