summaryrefslogtreecommitdiff
path: root/lib/jabber.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-26 16:53:41 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-26 16:53:41 -0400
commit0bc0568e66c9d5fb40eafbe26d96cf138f096660 (patch)
tree63a6e91ada6d921e00191d888c3df679cd1d2789 /lib/jabber.php
parent782fe0130fe0221923cd2ec2a2b037575315e741 (diff)
only send local messages to public XMPP stream
darcs-hash:20080826205341-84dde-04c1641f4b9c5aa5318b76512664ee9df170d779.gz
Diffstat (limited to 'lib/jabber.php')
-rw-r--r--lib/jabber.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/jabber.php b/lib/jabber.php
index 01ec8da43..1202aa322 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,