summaryrefslogtreecommitdiff
path: root/modules/chanserv/cs_xop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/chanserv/cs_xop.cpp')
-rw-r--r--modules/chanserv/cs_xop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/chanserv/cs_xop.cpp b/modules/chanserv/cs_xop.cpp
index f808c7622..ffdf46488 100644
--- a/modules/chanserv/cs_xop.cpp
+++ b/modules/chanserv/cs_xop.cpp
@@ -640,7 +640,7 @@ public:
for (int i = 0; i < conf.CountBlock("privilege"); ++i)
{
- Configuration::Block &block = conf.GetBlock("privilege", i);
+ const auto &block = conf.GetBlock("privilege", i);
const Anope::string &pname = block.Get<const Anope::string>("name");
Privilege *p = PrivilegeManager::FindPrivilege(pname);
@@ -656,7 +656,7 @@ public:
for (int i = 0; i < conf.CountBlock("command"); ++i)
{
- Configuration::Block &block = conf.GetBlock("command", i);
+ const auto &block = conf.GetBlock("command", i);
const Anope::string &cname = block.Get<const Anope::string>("name"),
&cserv = block.Get<const Anope::string>("command");
if (cname.empty() || cserv != "chanserv/xop")