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_shun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_shun.cpp') diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index c99939193..6f66a6ac6 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -208,7 +208,7 @@ public: cleanedcommands.Clear(); enabledcommands.Clear(); - auto tag = ServerInstance->Config->ConfValue("shun"); + const auto& tag = ServerInstance->Config->ConfValue("shun"); allowconnect = tag->getBool("allowconnect"); allowtags = tag->getBool("allowtags"); cleanedcommands.AddList(tag->getString("cleanedcommands", "AWAY PART QUIT")); -- cgit v1.3.1-10-gc9f91