]> PatchyGit - patchyircd.git/commitdiff
add all the caps to CAP LS
authorEgor <egor@patchysicp.xyz>
Wed, 24 Jan 2024 03:02:47 +0000 (05:02 +0200)
committerEgor <egor@patchysicp.xyz>
Wed, 24 Jan 2024 03:02:47 +0000 (05:02 +0200)
src/irc.c

index 66f296d..fb28f67 100644 (file)
--- a/src/irc.c
+++ b/src/irc.c
@@ -213,7 +213,7 @@ int processPacket(struct client_data *client, char *source, char *command, int a
                if (strcmp(args[0], "LS") == 0) {
                        if (args[1] && atoi(args[1]) >= 302)
                                client->caps |= CAP_302;
-                       copy_strf(&databuf, ":%s CAP * LS :multi-prefix extended-join away-notify invite-notify\r\n", hostname);
+                       copy_strf(&databuf, ":%s CAP * LS :cap-notify multi-prefix extended-join away-notify invite-notify extended-monitor chghost setname account-notify\r\n", hostname);
                        sendbuf(client);
                        if (!is_registered(client)) {
                                client->regstate = REG_CAPLS;