diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-27 00:39:59 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-27 00:39:59 +0000 |
commit | 7936e1b8ba27a3275868362fa41ecf1d805a1a1b (patch) | |
tree | 8710e0a20b4a6b5b26cb2c8a96e29e3f30e317f1 /src | |
parent | f8c448a8127c9d26abdf32a0ee0d254516b385e6 (diff) |
Fix to SVSJOIN: disallow invalid channel names. Needs backport.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7852 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 46b5ee02b..4851095e8 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -320,6 +320,9 @@ bool TreeSocket::ServiceJoin(const std::string &prefix, std::deque<std::string> if (params.size() < 2) return true; + if (!this->Instance->IsChannel(params[1].c_str())) + return true; + userrec* u = this->Instance->FindNick(params[0]); if (u) |