aboutsummaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-03-02 02:44:41 +0000
committerGravatar Sadie Powell2021-03-02 02:56:49 +0000
commit3f113fc04628491cb795d2fc809d89ff2379c61a (patch)
tree96f157ee67231916a41bdc4f73b92b96f229a05e /src/mode.cpp
parentReplace manual copy prevention with the insp::uncopiable class. (diff)
Move iterator_range to the utility directory and renamespace.
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index ddcddda6a..59f8dd4e0 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -305,7 +305,7 @@ ModeAction ModeParser::TryMode(User* user, User* targetuser, Channel* chan, Mode
}
// Ask mode watchers whether this mode change is OK
- for (const auto& [_, mw] : stdalgo::equal_range(modewatchermap, mh->name))
+ for (const auto& [_, mw] : insp::equal_range(modewatchermap, mh->name))
{
if (mw->GetModeType() == type)
{
@@ -343,7 +343,7 @@ ModeAction ModeParser::TryMode(User* user, User* targetuser, Channel* chan, Mode
if (ma != MODEACTION_ALLOW)
return ma;
- for (const auto& [_, mw] : stdalgo::equal_range(modewatchermap, mh->name))
+ for (const auto& [_, mw] : insp::equal_range(modewatchermap, mh->name))
{
if (mw->GetModeType() == type)
mw->AfterMode(user, targetuser, chan, parameter, adding);
@@ -509,7 +509,7 @@ void ModeParser::ShowListModeList(User* user, Channel* chan, ModeHandler* mh)
bool display = true;
// Ask mode watchers whether it's OK to show the list
- for (const auto& [_, mw] : stdalgo::equal_range(modewatchermap, mh->name))
+ for (const auto& [_, mw] : insp::equal_range(modewatchermap, mh->name))
{
if (mw->GetModeType() == MODETYPE_CHANNEL)
{