aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_restrictchans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_restrictchans.cpp')
-rw-r--r--src/modules/m_restrictchans.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp
index ff7ba356e..6084bd600 100644
--- a/src/modules/m_restrictchans.cpp
+++ b/src/modules/m_restrictchans.cpp
@@ -74,7 +74,7 @@ public:
allowchans.swap(newallows);
// Global config
- auto tag = ServerInstance->Config->ConfValue("restrictchans");
+ const auto& tag = ServerInstance->Config->ConfValue("restrictchans");
allowregistered = tag->getBool("allowregistered", false);
}