X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fidlist.c;h=883319034af96adfdf022ebde913794e5ea572c1;hb=f6115845375d1a0bc605df690ebcd728db995bb6;hp=3862582cb9e3f3afec92d3079f3568b7cbcf7bf0;hpb=61796c2ba4e250181d6f88b0e19b6c5cbc73516e;p=silc.git diff --git a/apps/silcd/idlist.c b/apps/silcd/idlist.c index 3862582c..88331903 100644 --- a/apps/silcd/idlist.c +++ b/apps/silcd/idlist.c @@ -159,13 +159,13 @@ silc_idlist_find_server_by_id(SilcIDList id_list, SilcServerID *id, server = (SilcServerEntry)id_cache->context; - if (ret_entry) - *ret_entry = id_cache; - if (server && registered && !(server->data.status & SILC_IDLIST_STATUS_REGISTERED)) return NULL; + if (ret_entry) + *ret_entry = id_cache; + SILC_LOG_DEBUG(("Found")); return server; @@ -187,13 +187,13 @@ silc_idlist_find_server_by_name(SilcIDList id_list, char *name, server = (SilcServerEntry)id_cache->context; - if (ret_entry) - *ret_entry = id_cache; - if (server && registered && !(server->data.status & SILC_IDLIST_STATUS_REGISTERED)) return NULL; + if (ret_entry) + *ret_entry = id_cache; + SILC_LOG_DEBUG(("Found")); return server; @@ -239,13 +239,13 @@ silc_idlist_find_server_by_conn(SilcIDList id_list, char *hostname, silc_idcache_list_free(list); - if (ret_entry) - *ret_entry = id_cache; - if (server && registered && !(server->data.status & SILC_IDLIST_STATUS_REGISTERED)) return NULL; + if (ret_entry) + *ret_entry = id_cache; + SILC_LOG_DEBUG(("Found")); return server; @@ -493,13 +493,13 @@ silc_idlist_find_client_by_id(SilcIDList id_list, SilcClientID *id, client = (SilcClientEntry)id_cache->context; - if (ret_entry) - *ret_entry = id_cache; - if (client && registered && !(client->data.status & SILC_IDLIST_STATUS_REGISTERED)) return NULL; + if (ret_entry) + *ret_entry = id_cache; + SILC_LOG_DEBUG(("Found")); return client;