diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2012-12-11 05:27:56 +0100 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2012-12-11 05:27:56 +0100 |
commit | 0edd26467e6be11fe4ce3785f05bd065d810798a (patch) | |
tree | c92a5e2145355d87cbd6de559003d2a311ad65c3 /src/protocol.cpp | |
parent | e71c890cf5945863106b5cca6e8b3be8cbbe03ab (diff) |
IsNickValid() now accepts '[' and ']' in the nickname
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r-- | src/protocol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp index d8c9cd635..de2013cc6 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -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 |