summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 19:23:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 19:23:17 +0000
commit18ea9418c4948123f7e4f58879b2f60dff7ba6c8 (patch)
tree81e0aa0aa403e09b2efa11abb5dcf418e9d8d410 /src
parent36567f165659fe2104d88d5e8cf6db1fe4d8c7ad (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp13
1 files 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<std::string> &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);