diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-23 21:43:32 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-23 21:43:32 +0000 |
commit | 5d3cdf88e34677ba2e2e1166b72481654e19f4b7 (patch) | |
tree | 1752831d06ec7a74ca2098ba01e0f83840be3e33 /src | |
parent | 5e3d719f94d8166219802691d50ab06e260a6d09 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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++; } |