Sort the id cache when changed data.
authorPekka Riikonen <priikone@silcnet.org>
Wed, 14 Feb 2001 14:49:27 +0000 (14:49 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 14 Feb 2001 14:49:27 +0000 (14:49 +0000)
CHANGES
lib/silcclient/command_reply.c

diff --git a/CHANGES b/CHANGES
index 8ede1cea7a3146d06fd682df175719e3bc0f2191..81ad9c494f0761575d7616a44da0b0d8932298c4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -11,6 +11,9 @@ Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
          server will query the nickname if someone needs it (client)
          a bit later.
 
+       * Sort the ID Cache in client library when the ID Cache data
+         has changed (needs sorting).
+
 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
 
        * Added --with-gmp configuration option.  If set the GMP
index b75c78b98da809bc64b9e4c6cd4d387192c696a8..007e283eab36234b0dc63cd92dd8bff2c4858074 100644 (file)
@@ -284,6 +284,7 @@ silc_client_command_reply_whois_print(SilcClientCommandReplyContext cmd,
       client_entry->realname = strdup(realname);
 
     id_cache->data = client_entry->nickname;
+    silc_idcache_sort_by_data(conn->client_cache);
 
     silc_free(client_id);
   }
@@ -448,7 +449,8 @@ SILC_CLIENT_CMD_REPLY_FUNC(identify)
        client_entry->username = strdup(username);
 
       id_cache->data = client_entry->nickname;
-
+      silc_idcache_sort_by_data(conn->client_cache);
+    
       silc_free(client_id);
     }
   }