From 02cdc2adcd3d47250cf232ce54f88f03226a1daf Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 21 Jan 2009 17:19:20 +0000 Subject: Check nickname validity on introduction, closes bug #682 reported by danieldg (thanks). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10974 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/uid.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules') 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 &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]); -- cgit v1.2.3