diff options
| author | 2023-08-25 10:01:08 +0100 | |
|---|---|---|
| committer | 2023-08-25 10:01:08 +0100 | |
| commit | 4ee8d931cd89f610887fcbdcb9a59822aa44023b (patch) | |
| tree | a084244a5872c1fd6c753115a3db3be1c101a819 /src/modules | |
| parent | Add a script for deploying SSL files from an ACME renewal tool. (diff) | |
Fix being able to FJOIN non-channels.
Closes #2057.
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_spanningtree/fjoin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/fjoin.cpp b/src/modules/m_spanningtree/fjoin.cpp index 92e8e979b..1e2cbc45f 100644 --- a/src/modules/m_spanningtree/fjoin.cpp +++ b/src/modules/m_spanningtree/fjoin.cpp @@ -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 |
