]> PatchyGit - patchyircd.git/commitdiff
send msg_join_extended during chghost fallback
authorEgor <egor@patchysicp.xyz>
Thu, 25 Jan 2024 01:45:25 +0000 (03:45 +0200)
committerEgor <egor@patchysicp.xyz>
Thu, 25 Jan 2024 01:45:25 +0000 (03:45 +0200)
src/irc.c

index 4c06411..d468a41 100644 (file)
--- a/src/irc.c
+++ b/src/irc.c
@@ -1500,7 +1500,7 @@ void client_chghost(struct client_data *client, const char *newusername, const c
        map_foreach(&client->channels, 0, &chan) {
                msg_join(client, chan);
                sendbuf_list_sans_self_caps(client, &chan->members, 0, 0, CAP_EXTENDEDJOIN|CAP_CHGHOST);
-               msg_join(client, chan);
+               msg_join_extended(client, chan);
                sendbuf_list_sans_self_caps(client, &chan->members, 0, CAP_EXTENDEDJOIN, CAP_CHGHOST);
                if (map_get(&chan->v, client->key)) {
                        copy_strf(&databuf, ":cia!cia@cia.gov MODE %s +v %s\r\n", chan->name, client->nick);