($resource) ? $resource :
common_config('xmpp', 'resource'),
common_config('xmpp', 'server'));
+ $conn->autoSubscribe();
if (!$conn) {
return false;
'address bar of your browser). If that user isn\'t you, ' .
'or if you didn\'t request this confirmation, just ignore this message.';
- jabber_send_message($address, $body);
+ return jabber_send_message($address, $body);
}
function jabber_special_presence($type, $to=NULL, $show=NULL, $status=NULL) {
while ($sub->fetch()) {
$user = User::staticGet($sub->subscriber);
if ($user && $user->jabber && $user->jabbernotify) {
- common_log(LOG_INFO,
+ common_log(LOG_INFO,
'Sending notice ' . $notice->id . ' to ' . $user->jabber,
__FILE__);
$success = jabber_send_message($user->jabber, $msg);