Show allowed channel types in ISUPPORT(005) numeric only
authorAlexander Barton <alex@barton.de>
Thu, 7 May 2020 16:03:06 +0000 (18:03 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 7 May 2020 16:03:06 +0000 (18:03 +0200)
Don't show the static list of all possibly available channel types ...

Closes #273.

src/ngircd/irc-info.c

index 82bd55182d774a54343c4634ae5271032a3aba8c..e38d5bb6f3338629f35cc2e22b7ef46bb08f6e15 100644 (file)
@@ -1565,7 +1565,8 @@ IRC_Send_ISUPPORT(CLIENT * Client)
                                                   Conf_Network))
                return DISCONNECTED;
        if (!IRC_WriteStrClient(Client, RPL_ISUPPORT1_MSG, Client_ID(Client),
-                               CHANTYPES, CHANTYPES, Conf_MaxJoins))
+                               Conf_AllowedChannelTypes, Conf_AllowedChannelTypes,
+                               Conf_MaxJoins))
                return DISCONNECTED;
        return IRC_WriteStrClient(Client, RPL_ISUPPORT2_MSG, Client_ID(Client),
                                  CHANNEL_NAME_LEN - 1, Conf_MaxNickLength - 1,