]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
presence: Broadcast presence changes to peer clients with CLICAP_PRESENCE.
authorWilliam Pitcock <redacted>
Tue, 2 Jun 2009 07:36:18 +0000 (02:36 -0500)
committerWilliam Pitcock <redacted>
Tue, 2 Jun 2009 07:36:18 +0000 (02:36 -0500)
src/client.c
src/messages.tab

index dcbebcb0a5aeb0342aa30376a814d7cbc82ffb0c..bbfd7d17bbc673ac732164c22dbc37cde2e1acd3 100644 (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
index 7ce3dba01b86bed7c749380015491cbeed98611b..4c2a026756e95862f03e89243ed12717ebce5e02 100644 (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,