From b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 10 Jan 2023 23:02:45 +0000 Subject: Qualify auto correctly in all cases. --- src/modules/m_chanlog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_chanlog.cpp') diff --git a/src/modules/m_chanlog.cpp b/src/modules/m_chanlog.cpp index 0d7c38960..46cf98205 100644 --- a/src/modules/m_chanlog.cpp +++ b/src/modules/m_chanlog.cpp @@ -54,7 +54,7 @@ public: if (snomasks.empty()) throw ModuleException(this, " must not be empty, at " + tag->source.str()); - for (const auto& snomask : snomasks) + for (const auto snomask : snomasks) { newlogs.emplace(snomask, channel); ServerInstance->Logs.Normal(MODNAME, "Logging %c to %s", snomask, channel.c_str()); @@ -72,7 +72,7 @@ public: const std::string snotice = "\002" + desc + "\002: " + msg; for (const auto& [_, channel] : channels) { - auto c = ServerInstance->Channels.Find(channel); + auto* c = ServerInstance->Channels.Find(channel); if (c) { ClientProtocol::Messages::Privmsg privmsg(ClientProtocol::Messages::Privmsg::nocopy, ServerInstance->Config->ServerName, c, snotice); -- cgit v1.3.1-10-gc9f91