From 5d3cdf88e34677ba2e2e1166b72481654e19f4b7 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 23 Aug 2006 21:43:32 +0000 Subject: [PATCH] If we get an unknown prefix character on a user when they join, we throw a fit and close the connection git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5004 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 1485c709a..8b059e297 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1401,6 +1401,12 @@ class TreeSocket : public InspSocket mode_users[modectr++] = usr; charlcat(modestring,mh->GetModeChar(),MAXBUF); } + else + { + this->Instance->WriteOpers("ERROR: We received a user with an unknown prefix '%c'. Closed connection to avoid a desync.",mh->GetPrefix()); + this->WriteLine(std::string("ERROR :What?! You sent me a mode prefix i cant handle ('")+mh->GetModeChar()+"'). Closing connection to avoid desync."); + return false; + } usr++; permissions++; } -- 2.39.5