mirror of
https://github.com/matrix-construct/construct
synced 2024-11-03 20:38:53 +01:00
presence: Broadcast presence changes to peer clients with CLICAP_PRESENCE.
This commit is contained in:
parent
695cc4bc0c
commit
48c5e056ca
2 changed files with 5 additions and 1 deletions
|
@ -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);
|
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
|
void
|
||||||
|
@ -1771,6 +1773,8 @@ delete_metadata(struct Client *client_p, const char *key)
|
||||||
|
|
||||||
rb_free(md);
|
rb_free(md);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sendto_common_channels_local_with_capability(client_p, CLICAP_PRESENCE, form_str(RPL_METADATACHG), me.name, client_p->name, key, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -813,7 +813,7 @@ static const char * replies[] = {
|
||||||
/* 789 */ NULL,
|
/* 789 */ NULL,
|
||||||
/* 790 RPL_METADATASET */ "%s :Metadata set",
|
/* 790 RPL_METADATASET */ "%s :Metadata set",
|
||||||
/* 791 RPL_METADATAREM */ "%s :Metadata removed",
|
/* 791 RPL_METADATAREM */ "%s :Metadata removed",
|
||||||
/* 792 RPL_METADATACHG */ "%s %s :%s",
|
/* 792 RPL_METADATACHG */ ":%s 792 * %s %s :%s",
|
||||||
/* 793 RPL_WHOISMETADATA */ "%s %s :%s",
|
/* 793 RPL_WHOISMETADATA */ "%s %s :%s",
|
||||||
/* 794 */ NULL,
|
/* 794 */ NULL,
|
||||||
/* 795 */ NULL,
|
/* 795 */ NULL,
|
||||||
|
|
Loading…
Reference in a new issue