1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 23:46:39 +02:00

Fixed Windows build

This commit is contained in:
Adam
2010-12-24 01:23:22 -05:00
parent befb4b3644
commit 35e328bcb6
10 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -579,13 +579,13 @@ void ChannelInfo::LoadMLock()
*/
bool ChannelInfo::HasMLock(ChannelMode *mode, const Anope::string &param, bool status) const
{
std::map<ChannelModeName, ModeLock>::const_iterator it = this->mode_locks.find(mode->Name);
std::multimap<ChannelModeName, ModeLock>::const_iterator it = this->mode_locks.find(mode->Name);
if (it != this->mode_locks.end())
{
if (mode->Type != MODE_REGULAR)
{
std::map<ChannelModeName, ModeLock>::const_iterator it_end = this->mode_locks.upper_bound(mode->Name);
std::multimap<ChannelModeName, ModeLock>::const_iterator it_end = this->mode_locks.upper_bound(mode->Name);
for (; it != it_end; ++it)
{
const ModeLock &ml = it->second;