mirror of
https://github.com/anope/anope.git
synced 2026-07-05 14:23:13 +02:00
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' {} \;
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user