summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 20:34:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 20:34:26 +0000
commit584a75ab05458eee3b134abadd44d3f2905b8e40 (patch)
treec3f9e10e70384ba0b00c2050edfe5e0285fbd302 /src/modules/m_spanningtree
parent5d453a3265ae3b5f18a848bd88e771cd00e5d1a7 (diff)
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
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp7
1 files changed, 6 insertions, 1 deletions
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());