summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index ac766ea8e..a95d40b2f 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1058,6 +1058,11 @@ class TreeSocket : public InspSocket
{
if (params.size() < 8)
return true;
+ if (params.size() > 8)
+ {
+ this->WriteLine(":"+Srv->GetServerName()+" KILL "+params[1]+" :Invalid client introduction ("+params[1]+"?)");
+ return true;
+ }
// NICK age nick host dhost ident +modes ip :gecos
// 0 1 2 3 4 5 6 7
time_t age = atoi(params[0].c_str());