summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 00:39:59 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 00:39:59 +0000
commit7936e1b8ba27a3275868362fa41ecf1d805a1a1b (patch)
tree8710e0a20b4a6b5b26cb2c8a96e29e3f30e317f1
parentf8c448a8127c9d26abdf32a0ee0d254516b385e6 (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
-rw-r--r--conf/inspircd.motd.example3
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp3
2 files changed, 5 insertions, 1 deletions
diff --git a/conf/inspircd.motd.example b/conf/inspircd.motd.example
index 6653792ac..cf162e90b 100644
--- a/conf/inspircd.motd.example
+++ b/conf/inspircd.motd.example
@@ -37,4 +37,5 @@
| Enjoy. |
| |
\ -- The InspIRCd Team /
- ------------------------------------------- \ No newline at end of file
+ -------------------------------------------
+
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)