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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user