packet_send_local_channel now actually checks whether the
authorPekka Riikonen <priikone@silcnet.org>
Wed, 14 Feb 2001 17:58:34 +0000 (17:58 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 14 Feb 2001 17:58:34 +0000 (17:58 +0000)
client is locally connected or not.

CHANGES
apps/silcd/packet_send.c

diff --git a/CHANGES b/CHANGES
index 09beadc1d44ea9fb8157cbce7638c1f762895b70..62c32f5276724c4c5905a4f6ebc0ce1a667fd101 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -30,6 +30,10 @@ Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
          bet set and the `connection' argument must be NULL to the
          silc_idlist_add_client function.
 
+       * The funtion silc_server_packet_send_local_channel actually did
+         not check whether the client was locally connected or not.  It
+         does that now.  Fixed a bug related to LEAVE command.
+
 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
 
        * Added --with-gmp configuration option.  If set the GMP
index 12e689462455dc4180442be54cc3ffed08a66446..2ecca8b5971b92d03235f8b35b87504208c03770 100644 (file)
@@ -606,7 +606,7 @@ void silc_server_packet_send_local_channel(SilcServer server,
   /* Send the message to clients on the channel's client list. */
   silc_list_start(channel->user_list);
   while ((chl = silc_list_get(channel->user_list)) != SILC_LIST_END) {
-    if (chl->client) {
+    if (chl->client && !chl->client->router) {
       sock = (SilcSocketConnection)chl->client->connection;
 
       /* Send the packet to the client */