From 56ee2476c99dff39e3a6d0b32387b21b917a18c2 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Feb 2006 21:48:03 +0000 Subject: Check for >8 params in NICK git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3167 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules') 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()); -- cgit v1.2.3