From 977ebb080b0262daef5e219df0b36a2b9bf08d09 Mon Sep 17 00:00:00 2001 From: special Date: Mon, 31 Mar 2008 08:54:10 +0000 Subject: Patch by brain; Fix crash when no parameters are given when introducing a remote client and add encap to the windows project git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9237 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/uid.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp index 62059f99c..0d53701f2 100644 --- a/src/modules/m_spanningtree/uid.cpp +++ b/src/modules/m_spanningtree/uid.cpp @@ -38,8 +38,9 @@ bool TreeSocket::ParseUID(const std::string &source, std::deque &pa */ if (params.size() != 10) { - this->WriteLine(std::string(":")+this->Instance->Config->GetSID()+" KILL "+params[0]+" :Invalid client introduction ("+params[0]+" with only "+ - ConvToStr(params.size())+" of 10 parameters?)"); + if (!params.empty()) + this->WriteLine(std::string(":")+this->Instance->Config->GetSID()+" KILL "+params[0]+" :Invalid client introduction ("+params[0]+" with only "+ + ConvToStr(params.size())+" of 10 parameters?)"); return true; } -- cgit v1.2.3