From b8b4a102befd07ed4ae9d4b30ee206c1306bdb8b Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 29 Aug 2007 21:09:39 +0000 Subject: Add duplicate UID error in ParseUID(), seems pippijn was triggering it and it was falling through the empty catch into _new = NULL :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7994 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket1.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp index a5cd2a8e1..6790fda83 100644 --- a/src/modules/m_spanningtree/treesocket1.cpp +++ b/src/modules/m_spanningtree/treesocket1.cpp @@ -1073,9 +1073,8 @@ bool TreeSocket::ParseUID(const std::string &source, std::deque &pa } catch (CoreException &e) { - /** TODO: SQUIT the server here, the remote server is fucking with us - * and has sent us the same UID twice! - */ + SendError("Protocol violation - Duplicate UUID '" + params[0] + "' on introduction of new user"); + return false; } (*(this->Instance->clientlist))[tempnick] = _new; _new->SetFd(FD_MAGIC_NUMBER); -- cgit v1.2.3