Use SILC_IS_LOCAL to check local entry.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 25 Nov 2002 11:25:51 +0000 (11:25 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 25 Nov 2002 11:25:51 +0000 (11:25 +0000)
apps/silcd/server_util.c

index da9f695f5c46d9ecb2b9569577f4aad50e50029b..5511a3cae86847af31382aeaafd6fb11f07f94c0 100644 (file)
@@ -923,7 +923,7 @@ bool silc_server_channel_has_local(SilcChannelEntry channel)
 
   silc_hash_table_list(channel->user_list, &htl);
   while (silc_hash_table_get(&htl, NULL, (void **)&chl)) {
-    if (!chl->client->router) {
+    if (SILC_IS_LOCAL(chl->client)) {
       silc_hash_table_list_reset(&htl);
       return TRUE;
     }