aboutsummaryrefslogtreecommitdiff
path: root/modules/helpmode.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-08-25 17:17:11 +0100
committerGravatar Sadie Powell2024-08-25 17:17:11 +0100
commit5dd92c538806c13cc26a68ee23756e3f92f04200 (patch)
tree032fe63901c2ef31f705fdbcdb0a287c3b932f1d /modules/helpmode.cpp
parentMerge branch 'insp4' into master. (diff)
Replace stalgo::erase with C++20 std::erase.
Diffstat (limited to 'modules/helpmode.cpp')
-rw-r--r--modules/helpmode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/helpmode.cpp b/modules/helpmode.cpp
index 358cba400..a4103f730 100644
--- a/modules/helpmode.cpp
+++ b/modules/helpmode.cpp
@@ -41,7 +41,7 @@ public:
if (change.adding)
helpers.push_back(dest);
else
- stdalgo::erase(helpers, dest);
+ std::erase(helpers, dest);
return true;
}
@@ -117,7 +117,7 @@ public:
void OnUserQuit(User* user, const std::string& message, const std::string& opermessage) override
{
if (user->IsModeSet(helpop))
- stdalgo::erase(helpop.helpers, user);
+ std::erase(helpop.helpers, user);
}
void OnWhois(Whois::Context& whois) override