]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/uid.cpp
This should probably be tested, but makes a whole lot more sense like this (users...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / uid.cpp
index 62059f99c6631caac0aacaa9e45f2a63e01ec6d4..7179e4eccfc34597ea4b6b70277e535222efb25d 100644 (file)
@@ -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;
        }
 
@@ -91,6 +92,7 @@ bool TreeSocket::ParseUID(const std::string &source, std::deque<std::string> &pa
                {
                        /* remote client changed, make sure we change their nick for the hash too */
                        tempnick = params[0].c_str();
+                       params[2] = params[0];
                }
        }