mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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
This commit is contained in:
parent
fa70e33607
commit
02cdc2adcd
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user