aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_delaymsg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_delaymsg.cpp')
-rw-r--r--src/modules/m_delaymsg.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp
index 83cdc1603..d05235af5 100644
--- a/src/modules/m_delaymsg.cpp
+++ b/src/modules/m_delaymsg.cpp
@@ -85,12 +85,8 @@ ModeAction DelayMsgMode::OnSet(User* source, Channel* chan, std::string& paramet
void DelayMsgMode::OnUnset(User* source, Channel* chan)
{
- /*
- * Clean up metadata
- */
- const Channel::MemberMap& users = chan->GetUsers();
- for (Channel::MemberMap::const_iterator n = users.begin(); n != users.end(); ++n)
- jointime.Set(n->second, 0);
+ for (const auto& [_, memb] : chan->GetUsers())
+ jointime.Unset(memb);
}
void ModuleDelayMsg::OnUserJoin(Membership* memb, bool sync, bool created, CUList&)