mirror of
https://github.com/anope/anope.git
synced 2026-07-04 01:23:12 +02:00
Fixed Windows build
This commit is contained in:
+2
-2
@@ -111,7 +111,7 @@ Anope::string get_mlock_modes(ChannelInfo *ci, int complete)
|
||||
{
|
||||
Anope::string pos = "+", neg = "-", params;
|
||||
|
||||
for (std::map<ChannelModeName, ModeLock>::const_iterator it = ci->GetMLock().begin(), it_end = ci->GetMLock().end(); it != it_end; ++it)
|
||||
for (std::multimap<ChannelModeName, ModeLock>::const_iterator it = ci->GetMLock().begin(), it_end = ci->GetMLock().end(); it != it_end; ++it)
|
||||
{
|
||||
const ModeLock &ml = it->second;
|
||||
ChannelMode *cm = ModeManager::FindChannelModeByName(ml.name);
|
||||
@@ -241,7 +241,7 @@ void check_modes(Channel *c)
|
||||
return;
|
||||
}
|
||||
|
||||
for (std::map<ChannelModeName, ModeLock>::const_iterator it = ci->GetMLock().begin(), it_end = ci->GetMLock().end(); it != it_end; ++it)
|
||||
for (std::multimap<ChannelModeName, ModeLock>::const_iterator it = ci->GetMLock().begin(), it_end = ci->GetMLock().end(); it != it_end; ++it)
|
||||
{
|
||||
const ModeLock &ml = it->second;
|
||||
ChannelMode *cm = ModeManager::FindChannelModeByName(ml.name);
|
||||
|
||||
+2
-2
@@ -579,13 +579,13 @@ void ChannelInfo::LoadMLock()
|
||||
*/
|
||||
bool ChannelInfo::HasMLock(ChannelMode *mode, const Anope::string ¶m, 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;
|
||||
|
||||
Reference in New Issue
Block a user