1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 04:46:17 +00:00

Show allowed channel types in ISUPPORT(005) numeric only

Don't show the static list of all possibly available channel types ...

Closes #273.
This commit is contained in:
Alexander Barton 2020-05-07 18:03:06 +02:00
parent bc22f41c51
commit 4b7e8db418

View File

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