Fix being able to FJOIN non-channels.

Closes #2057.
This commit is contained in:
Sadie Powell 2023-08-25 10:01:08 +01:00
parent 84f2c99234
commit 4ee8d931cd

View File

@ -128,6 +128,9 @@ CmdResult CommandFJoin::Handle(User* srcuser, Params& params)
if (!chan)
{
if (channel[0] != '#')
throw ProtocolException("Malformed channel name in FJOIN '" + channel + '"');
chan = new Channel(channel, TS);
}
else