diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-05-16 01:56:06 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-05-16 01:56:06 +0200 |
commit | c5a46583800374344d8676eccd7061a15a5ac1ce (patch) | |
tree | 486f8ecdc4abd23795c871a59fd0ec707c6a49d8 /src/configreader.cpp | |
parent | 4b41feea830fc84e8c1b2fd0982f3e8d8840af96 (diff) |
Allow spaces (and more) in oper types
The spaces are converted to '_' characters in OPERTYPE for 2.0 servers
Issue #533 suggested by @ankitkv
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index cd6122b25..943fa5a41 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -135,8 +135,6 @@ void ServerConfig::CrossCheckOperClassType() std::string name = tag->getString("name"); if (name.empty()) throw CoreException("<type:name> is missing from tag at " + tag->getTagLocation()); - if (!ServerInstance->IsNick(name, Limits.NickMax)) - throw CoreException("<type:name> is invalid (value '" + name + "')"); if (oper_blocks.find(" " + name) != oper_blocks.end()) throw CoreException("Duplicate type block with name " + name + " at " + tag->getTagLocation()); |