mcabber/mcabber/caps.c
changeset 2212 778280b01bcb
parent 2064 01485f807811
child 2216 fa516ef22145
--- a/mcabber/mcabber/caps.c	Sun Oct 25 14:55:12 2015 +0100
+++ b/mcabber/mcabber/caps.c	Thu Nov 05 15:08:47 2015 +0100
@@ -101,7 +101,7 @@
   c->features = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
   c->identities = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, identity_destroy);
   c->forms = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, form_destroy);
-  g_hash_table_insert(caps_cache, g_strdup(hash), c);
+  g_hash_table_replace(caps_cache, g_strdup(hash), c);
 }
 
 void caps_remove(const char *hash)