summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2020-05-07 18:03:06 +0200
committerAlexander Barton <alex@barton.de>2020-05-07 18:03:06 +0200
commit4b7e8db418340576c95f1edad8470b66d6fe886d (patch)
tree321c1c7f07dff56c1b70cc89e7b1d6e19c2ccb5c
parentbc22f41c513f053374be64058db7494974b65a8f (diff)
downloadngircd-4b7e8db418340576c95f1edad8470b66d6fe886d.tar.gz
ngircd-4b7e8db418340576c95f1edad8470b66d6fe886d.zip
Show allowed channel types in ISUPPORT(005) numeric only
Don't show the static list of all possibly available channel types ...

Closes #273.
-rw-r--r--src/ngircd/irc-info.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c
index 82bd5518..e38d5bb6 100644
--- a/src/ngircd/irc-info.c
+++ b/src/ngircd/irc-info.c
@@ -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,