1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 06:43:13 +02:00

Send a better error when JOIN is used for a channel without hash mark (#).

Reported by k4be in https://bugs.unrealircd.org/view.php?id=5514
This commit is contained in:
Bram Matthys
2019-12-30 19:02:20 +01:00
parent fccb3b2f5b
commit 2c23d4299c
+4
View File
@@ -1331,6 +1331,10 @@ void send_invalid_channelname(Client *client, char *channelname)
{
char *reason;
if (*channelname != '#')
{
reason = "Channel name must start with a hash mark (#)";
} else
if (strlen(channelname) > CHANNELLEN)
{
reason = "Channel name is too long";