From 1b2916c8451506adccf3ab0a56bbf836d9f3cb36 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 10 Jan 2023 20:57:56 +0000 Subject: Avoid copying shared_ptr when not necessary. --- src/modules/m_dccallow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_dccallow.cpp') diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 62652f583..a50ab5722 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -608,7 +608,7 @@ public: } bfl.swap(newbfl); - auto tag = ServerInstance->Config->ConfValue("dccallow"); + const auto& tag = ServerInstance->Config->ConfValue("dccallow"); cmd.ext.maxentries = tag->getUInt("maxentries", 20, 1); cmd.defaultlength = tag->getDuration("length", 0); blockchat = tag->getBool("blockchat"); -- cgit v1.3.1-10-gc9f91