X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/e4a64911aeab9a6acfa6219da66720e854dfc40a..41c6374550872d16a7b64dcab7891c88bb990a7b:/src/client.c diff --git a/src/client.c b/src/client.c index dcbebcb..5cee858 100644 --- a/src/client.c +++ b/src/client.c @@ -1756,6 +1756,8 @@ set_metadata(struct Client *client_p, const char *key, const char *value) irc_dictionary_add(client_p->user->metadata, md->key, md); } + + sendto_common_channels_local_with_capability(client_p, CLICAP_PRESENCE, form_str(RPL_METADATACHG), me.name, client_p->name, key, value); } void @@ -1769,8 +1771,10 @@ delete_metadata(struct Client *client_p, const char *key) if (md == NULL) return; - rb_free(md); + rb_bh_free(metadata_heap, md); } + + sendto_common_channels_local_with_capability(client_p, CLICAP_PRESENCE, form_str(RPL_METADATACHG), me.name, client_p->name, key, ""); } void