aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_ojoin.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-10 20:57:56 +0000
committerGravatar Sadie Powell2023-01-10 21:27:18 +0000
commit1b2916c8451506adccf3ab0a56bbf836d9f3cb36 (patch)
tree8675a6bf6fdf97b0f7dba5449fe59f1f669986a2 /src/modules/m_ojoin.cpp
parentFix calling the base Set/Unset implementation in ListExtItem. (diff)
downloadinspircd++-1b2916c8451506adccf3ab0a56bbf836d9f3cb36.tar.gz
inspircd++-1b2916c8451506adccf3ab0a56bbf836d9f3cb36.tar.bz2
inspircd++-1b2916c8451506adccf3ab0a56bbf836d9f3cb36.zip
Avoid copying shared_ptr<ConfigTag> when not necessary.
Diffstat (limited to 'src/modules/m_ojoin.cpp')
-rw-r--r--src/modules/m_ojoin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp
index ee8e39cb3..57ec803a2 100644
--- a/src/modules/m_ojoin.cpp
+++ b/src/modules/m_ojoin.cpp
@@ -136,7 +136,7 @@ public:
void ReadConfig(ConfigStatus& status) override
{
- auto Conf = ServerInstance->Config->ConfValue("ojoin");
+ const auto& Conf = ServerInstance->Config->ConfValue("ojoin");
mycommand.notice = Conf->getBool("notice", true);
mycommand.op = Conf->getBool("op", true);
}