diff options
| author | 2023-08-25 10:02:56 +0100 | |
|---|---|---|
| committer | 2023-08-25 10:13:08 +0100 | |
| commit | 013ed11dcdea829d1ab3adfb3b67059f7690ee8a (patch) | |
| tree | 54d788c0d3aabf3fcec378ccf6cefef1f6bdc61b /src/modules/m_spanningtree/fjoin.cpp | |
| parent | Make the constructor of ModuleEventListener protected. (diff) | |
| parent | Fix being able to FJOIN non-channels. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_spanningtree/fjoin.cpp')
| -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 62d84c92d..c09220a3f 100644 --- a/src/modules/m_spanningtree/fjoin.cpp +++ b/src/modules/m_spanningtree/fjoin.cpp @@ -126,6 +126,9 @@ CmdResult CommandFJoin::Handle(User* srcuser, Params& params) if (!chan) { + if (!ServerInstance->Channels.IsPrefix(channel[0])) + throw ProtocolException("Malformed channel name in FJOIN '" + channel + '"'); + chan = new Channel(channel, TS); } else |
