From 0bc0568e66c9d5fb40eafbe26d96cf138f096660 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 26 Aug 2008 16:53:41 -0400 Subject: [PATCH] only send local messages to public XMPP stream darcs-hash:20080826205341-84dde-04c1641f4b9c5aa5318b76512664ee9df170d779.gz --- lib/jabber.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/jabber.php b/lib/jabber.php index 01ec8da439..1202aa3222 100644 --- a/lib/jabber.php +++ b/lib/jabber.php @@ -271,8 +271,9 @@ function jabber_broadcast_notice($notice) { $public = common_config('xmpp', 'public'); # FIXME PRIV don't send out private messages here + # XXX: should we send out non-local messages if public,localonly = false? I think not - if ($public) { + if ($public && $notice->is_local) { foreach ($public as $address) { common_log(LOG_INFO, 'Sending notice ' . $notice->id . ' to public listener ' . $address, -- 2.39.5