summaryrefslogtreecommitdiff
path: root/src/modules
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 /src/modules
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree/uid.cpp5
1 files changed, 3 insertions, 2 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;
}