diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-04-01 16:20:35 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-04-01 16:20:35 +0200 |
commit | 713416ddfc182873d29e65161f76c89b961413a2 (patch) | |
tree | 28da3b5dc9ef441c3dc74e07f7aae50b1202da38 /src/configreader.cpp | |
parent | 6a080dfd911e9463d35aad226384aa2a94f38057 (diff) |
Change IsNickHandler()/IsIdentHandler()/IsChannelHandler() to use C++ strings as arguments instead of C strings
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index df78fcab8..668290f4d 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -241,7 +241,7 @@ 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.c_str(), Limits.NickMax)) + 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()); |