#$config['xmpp']['user'] = 'update';
#$config['xmpp']['resource'] = 'uniquename';
#$config['xmpp']['password'] = 'blahblahblah';
+#$config['xmpp']['public'][] = 'someindexer@example.net';
#Do notice broadcasts offline
-#If you set this, you must run the queuehandler.php
+#If you set this, you must run the xmppdaemon.php
#as a daemon (with, say, start-stop-daemon)
#$config['queue']['enabled'] = true;
\ No newline at end of file
'resource' => 'uniquename',
'password' => 'blahblahblah',
'host' => NULL, # only set if != server
- 'debug' => false), # print extra debug info
+ 'debug' => false, # print extra debug info
+ 'public' => array()), # JIDs of users who want to receive the public stream
);
$config['db'] = &PEAR::getStaticProperty('DB_DataObject','options');
}
}
+ # 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;
}