-void
-set_metadata(struct Client *client_p, const char *key, const char *value)
-{
- struct MetadataEntry *md;
-
- if(client_p->user != NULL)
- {
- md = rb_bh_alloc(metadata_heap);
- rb_strlcpy(md->key, key, NICKLEN);
- rb_strlcpy(md->value, value, TOPICLEN);
-
- irc_dictionary_add(client_p->user->metadata, key, md);
- }
-}
-
-void
-delete_metadata(struct Client *client_p, const char *key)
-{
- struct MetadataEntry *md;
-
- if(client_p->user != NULL)
- {
- md = irc_dictionary_delete(client_p->user->metadata, key);
- if (md == NULL)
- return;
-
- rb_free(md);
- }
-}
-