/[drupal]/contributions/modules/xmpp_server/includes/sockets.php
ViewVC logotype

Diff of /contributions/modules/xmpp_server/includes/sockets.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Thu Sep 25 08:23:38 2008 UTC revision 1.3, Thu Sep 25 21:55:22 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: sockets.php,v 1.1 2008/09/25 06:45:42 t0talmeltd0wn Exp $  // $Id: sockets.php,v 1.2 2008/09/25 08:23:38 t0talmeltd0wn Exp $
3    
4  /**  /**
5   * Start our sockets and set up the SSL context from our Drupal config vars.   * Start our sockets and set up the SSL context from our Drupal config vars.
# Line 75  function xmpp_server_send($client, $data Line 75  function xmpp_server_send($client, $data
75    
76  function xmpp_server_send_to($key, $type, $node, $bare = false) {  function xmpp_server_send_to($key, $type, $node, $bare = false) {
77    $clients = xmpp_server_id_map($key, $type);    $clients = xmpp_server_id_map($key, $type);
   
   if (!$clients) {  
     return;  
   }  
   
   if (!is_array($clients)) {  
     $clients = array($clients);  
   }  
   
78    foreach ($clients as $client) {    foreach ($clients as $client) {
79      $c = xmpp_server_get_client($client);      $c = xmpp_server_get_client($client);
80      $s = xmpp_server_get_session($c);      $s = xmpp_server_get_session($c);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.2