From 18ea9418c4948123f7e4f58879b2f60dff7ba6c8 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 27 Aug 2007 19:23:17 +0000 Subject: Update comment to say we need to SQUIT. This is a minor thing so im not going to fix it yet git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7913 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket1.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp index d1404ede8..d0572f97d 100644 --- a/src/modules/m_spanningtree/treesocket1.cpp +++ b/src/modules/m_spanningtree/treesocket1.cpp @@ -1043,9 +1043,18 @@ bool TreeSocket::ParseUID(const std::string &source, std::deque &pa /* IMPORTANT NOTE: For remote users, we pass the UUID in the constructor. This automatically * sets it up in the UUID hash for us. - * TODO: Make this throw an exception maybe, on UUID collision? */ - userrec* _new = new userrec(this->Instance, params[0]); + userrec* _new = NULL; + try + { + _new = new userrec(this->Instance, params[0]); + } + catch (CoreException &e) + { + /** TODO: SQUIT the server here, the remote server is fucking with us + * and has sent us the same UID twice! + */ + } (*(this->Instance->clientlist))[tempnick] = _new; _new->SetFd(FD_MAGIC_NUMBER); strlcpy(_new->nick, tempnick, NICKMAX - 1); -- cgit v1.2.3