presence: Broadcast presence changes to peer clients with CLICAP_PRESENCE.

This commit is contained in:
William Pitcock 2009-06-02 02:36:18 -05:00
parent 695cc4bc0c
commit 48c5e056ca
2 changed files with 5 additions and 1 deletions

View file

@ -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
@ -1771,6 +1773,8 @@ delete_metadata(struct Client *client_p, const char *key)
rb_free(md);
}
sendto_common_channels_local_with_capability(client_p, CLICAP_PRESENCE, form_str(RPL_METADATACHG), me.name, client_p->name, key, "");
}
void

View file

@ -813,7 +813,7 @@ static const char * replies[] = {
/* 789 */ NULL,
/* 790 RPL_METADATASET */ "%s :Metadata set",
/* 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",
/* 794 */ NULL,
/* 795 */ NULL,