summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-31 08:54:10 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-31 08:54:10 +0000
commit977ebb080b0262daef5e219df0b36a2b9bf08d09 (patch)
treeab1045aa37276f6d30ac10115c804f18616e3b6b
parent5017322a4fc3ef36c1c456efbfa15866e5e09ee4 (diff)
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
-rw-r--r--src/modules/m_spanningtree/uid.cpp5
-rw-r--r--win/inspircdVC80.sln2
-rw-r--r--win/inspircdVC80.vcproj20
-rw-r--r--win/m_spanningtreeVC80.vcproj4
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<std::string> &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
@@ -2910,26 +2910,6 @@
</FileConfiguration>
</File>
<File
- RelativePath="..\src\modules\m_silence_ext.cpp"
- >
- <FileConfiguration
- Name="Debug|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCCLCompilerTool"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCCLCompilerTool"
- />
- </FileConfiguration>
- </File>
- <File
RelativePath="..\src\modules\m_spy.cpp"
>
<FileConfiguration
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
@@ -374,6 +374,10 @@
>
</File>
<File
+ RelativePath="..\src\modules\m_spanningtree\encap.cpp"
+ >
+ </File>
+ <File
RelativePath="..\src\modules\m_spanningtree\fhost.cpp"
>
</File>