mirror of
https://github.com/anope/anope.git
synced 2026-07-01 10:46:38 +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:
@@ -200,7 +200,7 @@ class ModuleSQL : public Module, public Pipe
|
||||
++it;
|
||||
|
||||
for (i = 0; i < Config->CountBlock("mysql"); ++i)
|
||||
if (Config->GetBlock("mysql", i)->Get<const Anope::string &>("name", "main") == cname)
|
||||
if (Config->GetBlock("mysql", i)->Get<const Anope::string>("name", "main") == cname)
|
||||
break;
|
||||
|
||||
if (i == num)
|
||||
@@ -215,14 +215,14 @@ class ModuleSQL : public Module, public Pipe
|
||||
for (i = 0; i < Config->CountBlock("mysql"); ++i)
|
||||
{
|
||||
Configuration::Block *block = Config->GetBlock("mysql", i);
|
||||
const Anope::string &connname = block->Get<const Anope::string &>("name", "mysql/main");
|
||||
const Anope::string &connname = block->Get<const Anope::string>("name", "mysql/main");
|
||||
|
||||
if (this->MySQLServices.find(connname) == this->MySQLServices.end())
|
||||
{
|
||||
const Anope::string &database = block->Get<const Anope::string &>("database", "anope");
|
||||
const Anope::string &server = block->Get<const Anope::string &>("server", "127.0.0.1");
|
||||
const Anope::string &user = block->Get<const Anope::string &>("username", "anope");
|
||||
const Anope::string &password = block->Get<const Anope::string &>("password");
|
||||
const Anope::string &database = block->Get<const Anope::string>("database", "anope");
|
||||
const Anope::string &server = block->Get<const Anope::string>("server", "127.0.0.1");
|
||||
const Anope::string &user = block->Get<const Anope::string>("username", "anope");
|
||||
const Anope::string &password = block->Get<const Anope::string>("password");
|
||||
int port = block->Get<int>("port", "3306");
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user