From: Pekka Riikonen Date: Wed, 14 Feb 2001 17:58:34 +0000 (+0000) Subject: packet_send_local_channel now actually checks whether the X-Git-Tag: SILC.0.1~226 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=1a14938451df556ae88136374cd1ea05417b5026;p=silc.git packet_send_local_channel now actually checks whether the client is locally connected or not. --- diff --git a/CHANGES b/CHANGES index 09beadc1..62c32f52 100644 --- a/CHANGES +++ b/CHANGES @@ -30,6 +30,10 @@ Wed Feb 14 16:03:25 EET 2001 Pekka Riikonen 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 * Added --with-gmp configuration option. If set the GMP diff --git a/apps/silcd/packet_send.c b/apps/silcd/packet_send.c index 12e68946..2ecca8b5 100644 --- a/apps/silcd/packet_send.c +++ b/apps/silcd/packet_send.c @@ -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 */