aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_chanlog.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-06 20:06:18 +0100
committerGravatar Sadie Powell2021-04-07 10:36:11 +0100
commit942fd2bcfd384a12c900999fe663202c87319a68 (patch)
treec2bad1906af27afbc3c7d96c3e5ca3c27c83f090 /src/modules/m_chanlog.cpp
parentMerge branch 'insp3' into master. (diff)
Switch simple iterator loops to use range-based for loops.
Diffstat (limited to 'src/modules/m_chanlog.cpp')
-rw-r--r--src/modules/m_chanlog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_chanlog.cpp b/src/modules/m_chanlog.cpp
index 5c190d3d7..349e0be47 100644
--- a/src/modules/m_chanlog.cpp
+++ b/src/modules/m_chanlog.cpp
@@ -53,10 +53,10 @@ class ModuleChanLog : public Module
throw ModuleException("Malformed chanlog tag at " + tag->source.str());
}
- for (std::string::const_iterator it = snomasks.begin(); it != snomasks.end(); it++)
+ for (const auto& snomask : snomasks)
{
- newlogs.insert(std::make_pair(*it, channel));
- ServerInstance->Logs.Log(MODNAME, LOG_DEFAULT, "Logging %c to %s", *it, channel.c_str());
+ newlogs.insert(std::make_pair(snomask, channel));
+ ServerInstance->Logs.Log(MODNAME, LOG_DEFAULT, "Logging %c to %s", snomask, channel.c_str());
}
}
logstreams.swap(newlogs);