summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-21 17:19:20 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-21 17:19:20 +0000
commit02cdc2adcd3d47250cf232ce54f88f03226a1daf (patch)
treeac04d611350479ea5039dc9729f431c10d31e033
parentfa70e3360757075e45b08340b0ab3a5b585af826 (diff)
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
-rw-r--r--src/modules/m_spanningtree/uid.cpp5
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]);