summaryrefslogtreecommitdiff
path: root/lib/jabber.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jabber.php')
-rw-r--r--lib/jabber.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/jabber.php b/lib/jabber.php
index d772cd92c..1e609377f 100644
--- a/lib/jabber.php
+++ b/lib/jabber.php
@@ -255,6 +255,21 @@ function jabber_broadcast_notice($notice) {
}
}
+ # Now, users who want everything
+
+ $public = common_config('xmpp', 'public');
+
+ # FIXME PRIV don't send out private messages here
+
+ if ($public) {
+ foreach ($public as $address) {
+ common_log(LOG_INFO,
+ 'Sending notice ' . $notice->id . ' to public listener ' . $address,
+ __FILE__);
+ jabber_send_notice($address, $notice);
+ }
+ }
+
return true;
}