summaryrefslogtreecommitdiff
path: root/modules/commands/cs_xop.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-05 21:05:43 -0400
committerAdam <Adam@anope.org>2013-05-05 21:05:43 -0400
commit5b3f81ea78f7a8ab69ff94cbf2bbf07f5966682e (patch)
tree3536557fea79ffd77bb5a885465e579eeeafb8ff /modules/commands/cs_xop.cpp
parent3e8752fe665c3cdf683f2b5fa271231fb3a624df (diff)
That doesn't work either, just don't use references.
find ./ -name '*.cpp' -exec sed -i 's/Get<const Anope::string\&>/Get<const Anope::string>/g' {} \;
Diffstat (limited to 'modules/commands/cs_xop.cpp')
-rw-r--r--modules/commands/cs_xop.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp
index 1e1cd0646..9efde866c 100644
--- a/modules/commands/cs_xop.cpp
+++ b/modules/commands/cs_xop.cpp
@@ -557,13 +557,13 @@ class CSXOP : public Module
for (int i = 0; i < conf->CountBlock("privilege"); ++i)
{
Configuration::Block *block = conf->GetBlock("privilege", i);
- const Anope::string &pname = block->Get<const Anope::string &>("name");
+ const Anope::string &pname = block->Get<const Anope::string>("name");
Privilege *p = PrivilegeManager::FindPrivilege(pname);
if (p == NULL)
continue;
- const Anope::string &xop = block->Get<const Anope::string &>("xop");
+ const Anope::string &xop = block->Get<const Anope::string>("xop");
if (pname.empty() || xop.empty())
continue;
@@ -573,8 +573,8 @@ class CSXOP : public Module
for (int i = 0; i < conf->CountBlock("command"); ++i)
{
Configuration::Block *block = conf->GetBlock("command", i);
- const Anope::string &cname = block->Get<const Anope::string &>("name"),
- &cserv = block->Get<const Anope::string &>("command");
+ const Anope::string &cname = block->Get<const Anope::string>("name"),
+ &cserv = block->Get<const Anope::string>("command");
if (cname.empty() || cserv != "chanserv/xop")
continue;