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 +++-- win/inspircdVC80.sln | 2 +- win/inspircdVC80.vcproj | 20 -------------------- win/m_spanningtreeVC80.vcproj | 4 ++++ 4 files changed, 8 insertions(+), 23 deletions(-) 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; } diff --git a/win/inspircdVC80.sln b/win/inspircdVC80.sln index 20662924e..3fdfab90b 100644 --- a/win/inspircdVC80.sln +++ b/win/inspircdVC80.sln @@ -1,5 +1,5 @@ Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 +# Visual C++ Express 2005 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "inspircd", "inspircdVC80.vcproj", "{FE82A6FC-41C7-4CB1-AA46-6DBCB6C682C8}" ProjectSection(ProjectDependencies) = postProject {B922B569-727E-4EB0-827A-04E133A91DE7} = {B922B569-727E-4EB0-827A-04E133A91DE7} diff --git a/win/inspircdVC80.vcproj b/win/inspircdVC80.vcproj index ca881f655..403ed6aa6 100644 --- a/win/inspircdVC80.vcproj +++ b/win/inspircdVC80.vcproj @@ -2909,26 +2909,6 @@ /> - - - - - - - - diff --git a/win/m_spanningtreeVC80.vcproj b/win/m_spanningtreeVC80.vcproj index a73c34b53..e606bb6fc 100644 --- a/win/m_spanningtreeVC80.vcproj +++ b/win/m_spanningtreeVC80.vcproj @@ -373,6 +373,10 @@ RelativePath="..\src\modules\m_spanningtree\delline.cpp" > + + -- cgit v1.2.3