From 584a75ab05458eee3b134abadd44d3f2905b8e40 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 28 Aug 2007 20:34:26 +0000 Subject: If we see a NICK message without a timestamp on it, squit the server git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7980 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket2.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index aff737e5f..fa9c97a45 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -1489,8 +1489,13 @@ bool TreeSocket::ProcessLine(std::string &line) } if (who) { - if ((command == "NICK") && (params.size() > 1)) + if (command == "NICK") { + if (params.size() != 2) + { + SendError("Protocol violation: NICK message without TS - :"+std::string(who->uuid)+" NICK "+params[0]); + return false; + } /* Update timestamp on user when they change nicks */ who->age = atoi(params[1].c_str()); -- cgit v1.2.3