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_delaymsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_delaymsg.cpp') diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp index fec5c982b..4d0ef99e7 100644 --- a/src/modules/m_delaymsg.cpp +++ b/src/modules/m_delaymsg.cpp @@ -157,7 +157,7 @@ ModResult ModuleDelayMsg::HandleMessage(User* user, const MessageTarget& target, void ModuleDelayMsg::ReadConfig(ConfigStatus& status) { - auto tag = ServerInstance->Config->ConfValue("delaymsg"); + const auto& tag = ServerInstance->Config->ConfValue("delaymsg"); allownotice = tag->getBool("allownotice", true); } -- cgit v1.3.1-10-gc9f91