diff options
-rw-r--r-- | src/modules/m_spanningtree/uid.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp index 749922c62..80aa49482 100644 --- a/src/modules/m_spanningtree/uid.cpp +++ b/src/modules/m_spanningtree/uid.cpp @@ -62,6 +62,11 @@ bool TreeSocket::ParseUID(const std::string &source, std::deque<std::string> &pa this->SendError("Invalid client introduction (Malformed MODE sequence?)"); return false; } + else if (!ServerInstance->IsNick(parameters[0].c_str(), ServerInstance->Config->Limits.NickMax)) + { + this->SendError("Invalid client introduction (Nickname was not valid according to me)"); + return false; + } /* check for collision */ user_hash::iterator iter = this->ServerInstance->Users->clientlist->find(params[2]); |