summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-29 21:09:39 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-29 21:09:39 +0000
commitb8b4a102befd07ed4ae9d4b30ee206c1306bdb8b (patch)
tree4d1afbdb3d76054ea14c4db8356e1f0137114a8b /src/modules/m_spanningtree
parentfb29f9c44acc0fc621194c33951a8135752708d6 (diff)
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
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp5
1 files changed, 2 insertions, 3 deletions
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<std::string> &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);