diff options
author | Adam <Adam@anope.org> | 2013-04-09 14:48:24 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-04-09 14:48:24 -0500 |
commit | b76b2e11c80bb100c48e4eec9a51c53cd079d181 (patch) | |
tree | 304c0df94ec540fc70198bf9b7e1eb3442ad775b /src/regchannel.cpp | |
parent | b35665bb5427f84a42648cc65d1eb8aa5af8d131 (diff) |
Made privilege names case insensitive
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 89dd14e06..48d039be3 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -418,7 +418,7 @@ void ChannelInfo::Serialize(Serialize::Data &data) const this->ExtensibleSerialize(data); { Anope::string levels_buffer; - for (std::map<Anope::string, int16_t>::const_iterator it = this->levels.begin(), it_end = this->levels.end(); it != it_end; ++it) + for (Anope::map<int16_t>::const_iterator it = this->levels.begin(), it_end = this->levels.end(); it != it_end; ++it) levels_buffer += it->first + " " + stringify(it->second) + " "; data["levels"] << levels_buffer; } @@ -1099,7 +1099,7 @@ int16_t ChannelInfo::GetLevel(const Anope::string &priv) const return ACCESS_INVALID; } - std::map<Anope::string, int16_t>::const_iterator it = this->levels.find(priv); + Anope::map<int16_t>::const_iterator it = this->levels.find(priv); if (it == this->levels.end()) return 0; return it->second; |