1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 03:46:39 +02:00

IsNickValid() now accepts '[' and ']' in the nickname

This commit is contained in:
DukePyrolator
2012-12-11 05:27:56 +01:00
parent e71c890cf5
commit 0edd26467e
+1 -1
View File
@@ -323,7 +323,7 @@ bool IRCDProto::IsNickValid(const Anope::string &nick)
if (nick.empty())
return false;
Anope::string special = "{}\\`_^{|}";
Anope::string special = "[]\\`_^{|}";
for (unsigned i = 0; i < nick.length(); ++i)
if (!(nick[i] >= 'A' && nick[i] <= 'Z') && !(nick[i] >= 'a' && nick[i] <= 'z') && special.find(nick[i]) == Anope::string::npos